[Done]: Dutch translation for English.php 1.5.3 [Done]: Dutch translation for English.php 1.5.3
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Done]: Dutch translation for English.php 1.5.3

Started by Albe, March 15, 2010, 03:47:17 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Albe

Hello

I'm new here and just installed Coppermine 1.5.3.

There was only a partly translated dutch.php file in the package, so I think I can help translating it from English to Dutch?
I couldn't find (Searching in this forum) if there already someone was translating this file.

Would you please let me know if I can help?

Thanks in advance.

Joachim Müller

As far as we're aware there is currently nobody working on a Dutch language file.

phill104

The more languages files we get the better.

Take a look at the translation guide before you start.

http://documentation.coppermine-gallery.net/en/translation.htm
It is a mistake to think you can solve any major problems just with potatoes.

Albe

Quote from: Phill Luckhurst on March 15, 2010, 09:06:02 AM
The more languages files we get the better.

Take a look at the translation guide before you start.

http://documentation.coppermine-gallery.net/en/translation.htm

I've downloaded the newest version of the english.php I could find and have already read the documentation, but stil have a question.

********************************************
  Coppermine version: 1.5.3
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.5.x/lang/english.php $
  $Revision: 7236 $
  $LastChangedBy: gaugau $
  $Date: 2010-02-18 16:31:52 +0100 (Do, 18. Feb 2010) $
**********************************************

1. The new way of array definitions in english.php always begins and ends with

if (xxxxx) {
$xxx
...
$xxx
}

But in line 405-406:
$lang_smilies_inc_php['Mr. Green'] = 'Mr. Green';)
};


and 476-477
$lang_banning_php['form_not_submit'] = 'The form hasn\'t been submitted - there are errors that you need to correct first!'; // cpg1.5
};


they end with: };

2. Two lines with same code have different text?
In line 968:

$lang_db_input_php['com_added'] = 'Your comment was added'; // cpg1.5


is the same code used for an other text

in line 986:

$lang_db_input_php['com_added'] = 'Comment added';





Are these errors in the original english.php?



Joachim Müller

Fixed in rev 7315. However, I can't see how those little issues are related to translation.

Albe

Quote from: Joachim Müller on March 16, 2010, 07:04:54 AM
Fixed in rev 7315. However, I can't see how those little issues are related to translation.

Thanks!

These notes were only indirect related to the translation.
While my first translation didn't work, I was looking for a reason and read thoroughly (like you always advise) your documentation and original file.

Meanwhile I've found why my dutch-language wasn't found in Coppermine.

I had to add the language in: "charsetmgr.php"


// Displays a menu with a choice of charsets
function form_charset($optionvalue, $selected)
{
    global $CONFIG;


    $charsets = array(//'Default' => 'language file',
        'Arabic' => 'iso-8859-6',
        'Baltic' => 'iso-8859-4',
        'Central European' => 'iso-8859-2',
        'Chinese Simplified' => 'euc-cn',
        'Chinese Traditional' => 'big5',
        'Cyrillic (windows-1251)' => 'windows-1251',
        'Cyrillic (koi8-r)' => 'koi8-r',
        'Dutch' => 'utf-8', //1.5.3 Albert
        'Greek' => 'iso-8859-7',
        'Hebrew' => 'iso-8859-8-i',
        'Icelandic' => 'x-mac-icelandic',
        'Japanese' => 'euc-jp',
        'Korean' => 'euc-kr',
        'Maltese' => 'iso-8859-3',
        'Thai' => 'windows-874',
        'Turkish' => 'iso-8859-9',
        'Unicode' => 'utf-8',
        'Vietnamese' => 'windows-1258',
        'Western' => 'iso-8859-1'
    );

    //$value = strtolower($CONFIG['charset']);



This weekend I will finnish the translation of dutch.php and (if you approve) send it as an attach in the thread :" [Help wanted]: Translations for CPG1.5.x", like you prescribed in your documentation.

Joachim Müller

Quote from: Albe on March 16, 2010, 07:40:08 PM
I had to add the language in: "charsetmgr.php"


// Displays a menu with a choice of charsets
function form_charset($optionvalue, $selected)
{
    global $CONFIG;


    $charsets = array(//'Default' => 'language file',
        'Arabic' => 'iso-8859-6',
        'Baltic' => 'iso-8859-4',
        'Central European' => 'iso-8859-2',
        'Chinese Simplified' => 'euc-cn',
        'Chinese Traditional' => 'big5',
        'Cyrillic (windows-1251)' => 'windows-1251',
        'Cyrillic (koi8-r)' => 'koi8-r',
        'Dutch' => 'utf-8', //1.5.3 Albert
        'Greek' => 'iso-8859-7',
        'Hebrew' => 'iso-8859-8-i',
        'Icelandic' => 'x-mac-icelandic',
        'Japanese' => 'euc-jp',
        'Korean' => 'euc-kr',
        'Maltese' => 'iso-8859-3',
        'Thai' => 'windows-874',
        'Turkish' => 'iso-8859-9',
        'Unicode' => 'utf-8',
        'Vietnamese' => 'windows-1258',
        'Western' => 'iso-8859-1'
    );

    //$value = strtolower($CONFIG['charset']);


That was nonsense - undo that. All Coppermine language files are in Unicode (utf-8), you don't have to apply particular encoding settings. Using the existing option "Western" would have done the trick just as well if you can't use (for whatever obscure reasons) the default and recommended encoding utf-8. You definitely don't have to edit the charset manager or any other core file to create and test a language file.
However, this is yet another issue that is not related to what you reported in your initial posting and therefore shouldn't have gone into this thread.

Albe

Quote from: Joachim Müller on March 18, 2010, 10:08:39 PM
However, this is yet another issue that is not related to what you reported in your initial posting and therefore shouldn't have gone into this thread.

OK, sorry!

Albe

As promised, in attach my translation from english.php into dutch.php, using Notepad++.
I've tested it on my local computer (in USBWebserver) and in my host.
It works on both places, only accented characters give still a problem? (see attach).

I don't think it has something to do with the translation?
Can I do something about that?

Joachim Müller

Well, your file is encoded in iso-8859-1 and not in unicode. That's why the accented chars "act up". I have converted your file accordingly and added it to the SVN repository in rev 7328. Thanks for your contribution. To get a valid, working copy, get the converted file from the web SVN.

Albe

Quote from: Joachim Müller on March 21, 2010, 08:55:40 AM
I have converted your file accordingly and added it to the SVN repository in rev 7328.

Thank you very much!

MisteryBrother

Thanks :)
For translation it to Dutch. I use it also :)