Task #11954

Check the current status of i18n / L10n

Added by Sebastian Kurfuerst over 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Should have
Category:
I18n
Start date:
Due date:
% Done:

50%

Estimated time:
(Total: 0.00 h)
Sprint:
PHP Version:
Has patch:
No
Complexity:

Subtasks

Task #11955: assess the current state of the I18n featureResolvedKarsten Dambekalns

Actions
Task #11956: check Translate-ViewHelper in incubation state, and migrate it to fluidResolvedKarsten Dambekalns

Actions
Task #11957: check how JavaScript strings can be translatedResolvedRens Admiraal

Actions
Task #12612: Create a JavaScript localization provider / caching / service classResolvedRens Admiraal

Actions

Related issues

Related to TYPO3.Flow - Feature #14037: Translation files (XLIFF) must be possible per packageResolvedKarsten Dambekalns2011-03-24

Actions
#1

Updated by Sebastian Kurfuerst over 10 years ago

  • Subject changed from Improve Internationalization / Localization and get it running to (Timeboxed): Check the current status of i10n / l10n
#2

Updated by Sebastian Kurfuerst over 10 years ago

  • translation missing: en.field_position deleted (6)
  • translation missing: en.field_position set to 4
#3

Updated by Sebastian Kurfuerst over 10 years ago

Just had a quick look, generally well-structured. Some things which caught my attention:

  • F3\FLOW3\I18n\Service should be called "LocaleService"
  • inside the "XliffTranslationProvider", the $xliffBasePath is hardcoded to a directory inside FLOW3 (FLOW3/Private/Locale/Translations). This needs to be done per-package, as each package should be allowed to provide localizations. I am not fully sure yet how this should look like; most probably one needs to specify the current package. Inside the Translate ViewHelper, we could automatically set the current package by default.
  • For JavaScript files, we need a possibility to retrieve all localized strings for a given locale, in order to encode them as JSON. I did not see support for this yet.

Greets,
Sebastian

#4

Updated by Robert Lemke over 10 years ago

  • translation missing: en.field_position deleted (6)
  • translation missing: en.field_position set to 23
#5

Updated by Karsten Dambekalns over 10 years ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns

Today I played around with I18n in FLOW3. My goal was to add translated labels to at least some pages of the Blog. I succeeded1, but there are still some open ends. As was to be expected. :)

First, the Fluid TranslateViewHelper is not in the Fluid package, I pushed a change for review to include it at:
http://review.typo3.org/1262
That would resolve
http://forge.typo3.org/issues/11956

Second, I18n has to be initialized, see this change for that:
https://review.typo3.org/1238

The documentation does not tell where to put XLIFF files, and in fact the lookup is too restrictive currently. It expects files at resource://FLOW3/Private/Locale/Translations/ - so all translation files would have to be in the FLOW3 package. That obviously does not make sense. I created an issue for this:
http://forge.typo3.org/issues/14037

And finally we probably need a way to automatically extract translateable stuff from source (Fluid templates to begin with) and create XLIFF from it. Translation is nicely possible with Pootle (tried that today), but creating an initial XLIFF file needs some love. If someone knows about a tool for that, let us know!

[1] https://skitch.com/k-fish/rstf4/xliff-at-work

#6

Updated by Robert Lemke over 10 years ago

  • Project changed from 529 to Base Distribution
  • Target version deleted (788)
#7

Updated by Robert Lemke over 10 years ago

  • Target version set to 1228
  • translation missing: en.field_position deleted (17869)
  • translation missing: en.field_position set to 3
#8

Updated by Robert Lemke over 10 years ago

  • Project changed from Base Distribution to TYPO3 Flow Base Distribution
  • Target version deleted (1228)
#9

Updated by Robert Lemke over 10 years ago

  • Target version set to 1.0 beta 1
  • translation missing: en.field_position deleted (3)
  • translation missing: en.field_position set to 3
#10

Updated by Robert Lemke over 10 years ago

  • Tracker changed from Story to Task
  • Estimated time set to 0.00 h
#11

Updated by Robert Lemke over 10 years ago

  • Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow
  • Estimated time set to 0.00 h
#12

Updated by Rens Admiraal over 10 years ago

  • Estimated time set to 0.00 h

Extended I18n class to support plural / replacement values, and added comment to the XLIFF project about our suggestion for an API.

This change would actually better reflect current PHP functionality in ExtJS4
https://review.typo3.org/#change,2609

The XLIFF page: http://forge.typo3.org/projects/typo3v4-xliff/wiki/RFC_XLIFF_extjs_api

#13

Updated by Karsten Dambekalns about 10 years ago

  • Target version changed from 1.0 beta 1 to 1.1
#14

Updated by Sebastian Kurfuerst almost 10 years ago

  • Estimated time set to 0.00 h
  • Has patch set to No

Current Status:

  • Label translation / Public API is being polished
  • still missing: conventions for XLIFF label keys; concept for translating command line output
#15

Updated by Karsten Dambekalns almost 10 years ago

  • Category set to I18n
#16

Updated by Karsten Dambekalns almost 10 years ago

  • Subject changed from (Timeboxed): Check the current status of i10n / l10n to Check the current status of i18n / L10n
  • Estimated time set to 0.00 h
#17

Updated by Karsten Dambekalns almost 10 years ago

  • Status changed from Accepted to Resolved
  • Estimated time set to 0.00 h

Closing this one due to bit rot setting in... :)

The state was assessed and tweaked heavily. Whatever is still missing (we'll see) should get new feature issues.

#18

Updated by Karsten Dambekalns almost 10 years ago

  • Target version changed from 1.1 to 1.1 beta 1
  • Estimated time set to 0.00 h
#19

Updated by Karsten Dambekalns almost 10 years ago

  • Estimated time deleted (0.00 h)

Also available in: Atom PDF