German translation
cornerstone - September 20, 2007 - 23:10
| Project: | userlink |
| Version: | 5.x-1.2 |
| Component: | User interface |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I'd like to provide a German translation. How can I do that? The french localization is for version 4...
Step one could be a translation of the current 5.x version to German.
Step two should be a multilingual version (I'd like to have userlinks in a German and English part of the Website...)

#1
I figured out how to translate the module. I attached my German translation. BUT: some strings are not extracted from the module.
I don't know how to fix that so I changed the userlink.module. Now I have a German version, but I'd rather have all the English language strings extracted, because they are gone now. The stings are:
/**
* Implementation of hook_block().
*
*/
...
else if (($delta == 5) && user_access('access content')) {
if (user_access('create userlinks')) {
$items[] = l("Link hinzufügen", 'node/add/userlink');
}
if ($user->uid) {
$items[] = l('Meine Links', "userlink/$user->uid");
$items[] = l('Meine Kategorien', "userlink/$user->uid/categories");
}
if (user_access('view all userlinks')) {
$items[] = l("Alle Links", 'userlink/all');
}
if (user_access('view all userlinks')) {
$items[] = l("Alle Kategorien", 'userlink/all/categories');
}
$items[] = l('Alle BenutzerInnen', "userlink/all/everyone");
$block['content'] = theme('item_list', $items);
$block['subject'] = t('Link Menu');
return $block;
and
/**
* Displays a Drupal page listing all users along with a link to their userlinks...
*/
function userlink_page_everyone() {
$output = "
Auf einen Benutzernamen klicken, um seine/ihre Links zu sehen, oder ". l('hier klicken', 'userlink/all') ." um alle Links im System zu anzuzeigen.
\n";
You can now see the German words where there have been English ones before.