Proper multi-language support

Started by cvweiss, August 30, 2009, 12:37:24 PM

Previous topic - Next topic

cvweiss

I've been working on a mod that is being used worldwide by folks of different languages.  As I get volunteers to translate English to X language, I will be adding these to my mod.

However, what happens if I add support for French, but the forum administrator doesn't have support for French on his site?  When he attempts to install the module he will see "Test failed" for the French language.  Is there a way around this, or am I missing something blatantly obvious?

Akyhne

If yu are adding entities to a language file that might not exist, you just use the 'error="skip"'- option.

To add some text to Modifications.english_british-utf8.php, you just use:

<file name="$languagedir/Modifications.english_british-utf8.php" error="skip">
<operation>
<search position="end" /></search>
<add><![CDATA[

$txt['mytext'] = 'This is a text';
$txt['myothertext'] = 'This is another text';

]]></add>
</operation>

</file>

Advertisement: