Alexsander Akers
Alexsander Akers

Reputation: 16024

Add String to Drupal Translation Server without Resetting

I need to add some strings to my Drupal translation server but I don't want to reset the current translations. Is there any way I can do this?

Upvotes: 0

Views: 900

Answers (3)

Alexsander Akers
Alexsander Akers

Reputation: 16024

Just added a new release to the project and used an updated PO file.

Upvotes: 0

angryobject
angryobject

Reputation: 418

You can add translation strings right to your settings.php file. Check the very end of the file, there'll be a little explanation. An example:


$conf['locale_custom_strings_en'] = array(
   'forum'      => 'Discussion board',
   '@count min' => '@count minutes',
);

Upvotes: 1

wimvds
wimvds

Reputation: 12850

If you just want to add new translations without replacing the ones that already exist, just go to /admin/build/translate/import, select the language, browse to the .po file containing the translations and make sure you check the "Existing strings are kept, only new strings are added" radiobutton. This should add the new translations, and leave the existing ones as they were.

Upvotes: 0

Related Questions