The Fedict wishes to translate the Distribution.
For the moment, he want translate only the strings that appears in the frontend.
Drupal do not make this distinction between the frontend and the backend...
so we have decided the following process to try to identify the frontend strings.
Step one:
Produce .po files for each languages used into the profile (profiles/openfed).
For each translations sources included into the .po files, we will add a dynamic translation that will allow to identify (unique id) each translation source.
Step two:
The .po files will be imported into langfed.rovin.be (clone of minifed.rovin.be especially created).
When the new translations will be imported, the Fedict will make the translation of the strings.
Note: be sure than langfed.rovin.be is up to date before begin the translation.
Link to import: https://langfed.rovin.be/en/admin/config/regional/translate/import
Step three:
When the translations will be finished, Blue4You will make an export of the translations for each module included inside the profile.
Notes:
Get the files to translate.
- Download the zip archive.
- Extract the zip archive where you want.
- If not already done, install Poedit to be able to translate files (http://www.poedit.net).
- No recommended to translate Drupal language files without.
- Read the README.txt (included in archive) to know what you need to do.
- Translate files included in "po-files" folder.
| Comment | File | Size | Author |
|---|---|---|---|
| opendfed-translations.zip | 23.8 KB | Echofive |
Comments
Comment #1
Echofive commentedComment #2
bald.herreman commentedCan you put it in "langfed" in order to "preview display" the labels and assign it to us for translation? Or is something still missing?
Comment #3
Echofive commentedHum, sorry,
Bart can you upgrade langfed with the latest changes made on 7.x-1.x
After this, can you assign the ticket to Bald.
When is done, Bald will import the files into langfed.
Thx.
Comment #4
bart.hanssens commentedComment #5
bald.herreman commentedI imported the po files in langfed (NL and FR). Effect is very limited, only some labels are translated in the backend (see e.g. https://langfed.rovin.be/nl/node/add/ofed-address ).
Is it possible the module which forces EN should still be temporarily disabled?
Comment #6
bald.herreman commentedplease check also "published date" and "read more" on e.g. https://langfed.rovin.be/nl/collegas
note the translation import only had very limited effects.
Please treat this with high priority.
Comment #7
bart.hanssens commentedPerhaps using https://drupal.org/project/l10n_update (instead of l10n_client) might help.
I use it it my own distribution (Ferry) to download translations from contrib modules, but I think it also supports loading local files (and perhaps a mix of both). Otherwise one probably ends up with translating thousands of words from hundreds of modules ...
See also https://drupal.org/node/1412862
Comment #8
Echofive commentedAbout #5
Every pages that use the CMS theme use only the English.
It's normal that the given example (https://langfed.rovin.be/nl/node/add/ofed-address) uses english language too, because the "add/node" pages are considered like admin pages (on OpenFed). A tips to know if you are on the CMS theme is to check the page logo. On the CMS theme the logo is different than the Nerra theme.
If you want to remove this behavior you can edit the "openfed cms theme/template.php" and remove from the line 7 to the line 19.
About #6
In the source code, each string that needs to be translated uses the Drupal t() function.
When we ask to extract the translations (for a defined scope), the system read the code to get each string in the t() function.
If a string doesn't use the function t() in the source code for a defined scope, it will not extracted.
The term "read more" is not include in the scope because its scope is the DS module.
You need to translate by hand at each time.
The term "published date" don't use the t() because it's a custom DS label that override the field label.
May be for this case we can make something.
About #7
l10n_update can be use to keep translations (not yet translated, of course) up to date.
This module is a nice to have... but it has nothing to do in this case.
Other solution:
Another solution is to translate the web site using the "translate interface" (https://langfed.rovin.be/nl/admin/config/regional/translate/translate). You can translate the terms what you want with this form.
When the translation is done, we will export (! not extract) all strings used in the website.
This file will contain all Drupal strings regardless of a defined scope. It's a big file (one for each languages).
The problem with this files is the initial importation of each of them during the install process.
The Drupal install process is not built to manage several translation file at the same time.
In the actual state of the code, it's not possible to put these files into the translations folder of the profile.
In the actual state of the code, we are not able to put this files into the "translations" folder of the profile as this is recommanded by drupal.
If we place the files, Drupal will propose more languages in the install step: "choose language". In this step, it's only one language that can be chosen (radio buttons), so only one file will be imported, because Drupal consider the website to be monolingual...
To set the languages correctly, we need to merge the step "choose language" and the step "set up regional". Even if we can do that, it's not sure that we will have the technical capacity to import several files with a batch script because each of them have a big size.
Conclusions:
Conclusion about #5 and #6:
If you don't like the other solution, you must accept that a lot of field needs to be translated by hand after the install process (and for each website).
Conclusion about #7:
This module is a nice to have... but interesting.
This module is interesting for the future but his analysis can be described into another ticket, beacause it has nothing to do in this case.
Conclusion about the other solution:
If you are interested by this alternative it's mandatory to merge two steps of the install process otherwise, we can't stock the languages file into the profile without having many confusion during the install. Even we can't use a batch script to import during install, it is still possible to add the language files by hand after an installation.
Comment #9
bart.hanssens commentedI don't think that just enabling the languages during the installation actually downloads any translations.
L10n_update should also work when enabling modules and/or languages afterwards
So I'll give it try and download / install / enable the l10n_update module on minifed (but not on langfed), so the results can be compared.
Comment #10
bald.herreman commentedDo I understand correctly you're saying we cannot translate the labels in the distribution? Due to DS modules and missing t() functions? And the alternative can only work for monolingual sites...
Updated priority to critical. Please call me to clarify this.
Bald
Comment #11
bart.hanssens commentedIf the CMS theme enforces English, then that's a bug...
There a module for that, https://drupal.org/project/admin_language (while there's only a D7 dev version, it's better than hard-coding it in the cms theme...), see also #2088483: Remove hard-coded language
Comment #12
bart.hanssens commentedAdded tag
Comment #13
bart.hanssens commentedSuggested approach:
admin/config/regional/translate/exportAny new site should then
Comment #14
Echofive commentedMy part is done for the moment.
The translation process has begun.
Bart propose to remove the numbers in each translations files and keeping only what is needed.
I assign the ticket to him.
Comment #15
bart.hanssens commentedSomehow this needs to be pushed to localize.drupal.org
Comment #16
bart.hanssens commentedOngoing activity, re-tagging for 1.2
Comment #17
stefan.r commentedAs discussed with Bart Declercq
Comment #18
Babou commentedto do:
find out approval existing po files to l.d.o
translations drush make/d.o so they are in the zip
Comment #19
stefan.r commentedAs to bundling translations, we are waiting for the d.o team to pick up #2133929: Allow distributions to be packaged with translations.
As to the approval process for custom translations submitted to l.d.o, it is as follows:
To speed this up, me and Babou could arrange to become mods ourselves within the French and Dutch language groups, or identify admins who can give us accelerated approval within the lists:
Dutch: https://localize.drupal.org/node/5633
French: https://localize.drupal.org/translate/languages/fr
German: https://localize.drupal.org/translate/languages/de
Comment #20
bart.hanssens commentedRemoved the translations[] from make file (for now), no sure if build on drupal.org accepts it
Comment #21
stefan.r commentedComment #22
stefan.r commentedComment #23
bart.hanssens commentedClosing it for now, reopen it when/if it becomes more important.