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.
CommentFileSizeAuthor
opendfed-translations.zip23.8 KBEchofive

Comments

Echofive’s picture

Version: 7.x-1.0-rc2 » 7.x-1.x-dev
bald.herreman’s picture

Can you put it in "langfed" in order to "preview display" the labels and assign it to us for translation? Or is something still missing?

Echofive’s picture

Assigned: Echofive » bart.hanssens

Hum, 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.

bart.hanssens’s picture

bald.herreman’s picture

I 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?

bald.herreman’s picture

Assigned: bald.herreman » Echofive

please 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.

bart.hanssens’s picture

Perhaps 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

Echofive’s picture

About #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.

bart.hanssens’s picture

I 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.

bald.herreman’s picture

Priority: Major » Critical

Do 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

bart.hanssens’s picture

If 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

bart.hanssens’s picture

Issue tags: +release1.0

Added tag

bart.hanssens’s picture

Suggested approach:

  1. Make sure German is also available in installer
  2. Install a test site with 4 languages enabled
  3. Use l10n_update to import all standard translations
  4. Activate all content types
  5. Export the fields to a .po
  6. Translate these fields (not the whole site) + perhaps some other strings via admin/config/regional/translate/export
  7. Use these smaller files for translation, and store these (for now) in the git repo

Any new site should then

  1. use l10n_update to retrieve the "approved" translations for core and contrib modules
  2. import the remaining openfed content type translations
Echofive’s picture

Assigned: Echofive » bart.hanssens

My 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.

bart.hanssens’s picture

Priority: Critical » Major
Issue tags: -release1.0 +release1.1

Somehow this needs to be pushed to localize.drupal.org

bart.hanssens’s picture

Issue tags: -release1.1 +release1.2

Ongoing activity, re-tagging for 1.2

stefan.r’s picture

Issue tags: -release1.2 +release1.3

As discussed with Bart Declercq

Babou’s picture

to do:

find out approval existing po files to l.d.o

translations drush make/d.o so they are in the zip

stefan.r’s picture

Priority: Major » Normal
Issue summary: View changes
Status: Active » Postponed
Issue tags: -release1.3 +release1.4

As 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:

  • Submit translation to l.d.o
  • Get QA approval from an admin/mod within the relevant language group, through the #drupal.de #drupal.nl #drupal.fr IRC channels.
  • Wait for automated l.d.o build to happen for the relevant module

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

bart.hanssens’s picture

Removed the translations[] from make file (for now), no sure if build on drupal.org accepts it

stefan.r’s picture

Issue tags: -release1.4 +release1.5
stefan.r’s picture

Issue tags: -release1.5 +release1.6
bart.hanssens’s picture

Status: Postponed » Closed (won't fix)

Closing it for now, reopen it when/if it becomes more important.

  • Commit 1ac2f3e on 7.x-1.x, 7.x-1.7 by bart.hanssens:
    Issue #2087509: Added nl, fr, de translations in drush make file
    
  • Commit 554752b on 7.x-1.x, 7.x-1.7 by bart.hanssens:
    Issue #2087509: Added nl, fr, de translations in drush make files
    
  • Commit 1179a72 on 7.x-1.x, 7.x-1.7 by bart.hanssens:
    Issue #2087509: Removed nl, fr, de translations from make file
    
  • Commit 96b18b4 on 7.x-1.x, 7.x-1.7 by bart.hanssens:
    Issue #2087509: Removed nl, fr, de translations from make files
    
  • Commit 4763909 on 7.x-1.x, 7.x-1.7 by bart.hanssens:
    Issue #2087509: Readded nl, fr, de translations to make file
    
  • Commit aa591b9 on 7.x-1.x, 7.x-1.7 by bart.hanssens:
    Issue #2087509: Readded nl, fr, de translations to make file
    
  • Commit bd55d57 on 7.x-1.x, 7.x-1.7 by bart.hanssens:
    Issue #2087509: Removed nl, fr, de translations from make file (not...

  • Commit 1ac2f3e on 7.x-1.x, 7.x-1.8 by bart.hanssens:
    Issue #2087509: Added nl, fr, de translations in drush make file
    
  • Commit 554752b on 7.x-1.x, 7.x-1.8 by bart.hanssens:
    Issue #2087509: Added nl, fr, de translations in drush make files
    
  • Commit 1179a72 on 7.x-1.x, 7.x-1.8 by bart.hanssens:
    Issue #2087509: Removed nl, fr, de translations from make file
    
  • Commit 96b18b4 on 7.x-1.x, 7.x-1.8 by bart.hanssens:
    Issue #2087509: Removed nl, fr, de translations from make files
    
  • Commit 4763909 on 7.x-1.x, 7.x-1.8 by bart.hanssens:
    Issue #2087509: Readded nl, fr, de translations to make file
    
  • Commit aa591b9 on 7.x-1.x, 7.x-1.8 by bart.hanssens:
    Issue #2087509: Readded nl, fr, de translations to make file
    
  • Commit bd55d57 on 7.x-1.x, 7.x-1.8 by bart.hanssens:
    Issue #2087509: Removed nl, fr, de translations from make file (not...

  • bart.hanssens committed 1ac2f3e on 1.8
    Issue #2087509: Added nl, fr, de translations in drush make file
    
  • bart.hanssens committed 554752b on 1.8
    Issue #2087509: Added nl, fr, de translations in drush make files
    
  • bart.hanssens committed 1179a72 on 1.8
    Issue #2087509: Removed nl, fr, de translations from make file
    
  • bart.hanssens committed 96b18b4 on 1.8
    Issue #2087509: Removed nl, fr, de translations from make files
    
  • bart.hanssens committed 4763909 on 1.8
    Issue #2087509: Readded nl, fr, de translations to make file
    
  • bart.hanssens committed aa591b9 on 1.8
    Issue #2087509: Readded nl, fr, de translations to make file
    
  • bart.hanssens committed bd55d57 on 1.8
    Issue #2087509: Removed nl, fr, de translations from make file (not...