Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Zorac - tammikuu 15, 2006, 11:31:54 AP

Otsikko: question regarding languages for mods
Kirjoitti: Zorac - tammikuu 15, 2006, 11:31:54 AP
ive been editing a mod which is english and was provided a greek translation for the mod, and have a couple questions about implementing it into the install.xml file....

does the Modifications.english.php file always exist no matter what language the person is using on smf?

and the proper file for greek would be Modifications.greek.php i assume??

if the english always exists,  i would use the following lines for the files::

english
   <file name="$languagedir/Modifications.english.php">

and greek
   <file name="$languagedir/Modifications.greek.php" error="skip">

the skip as not everyone want greek

thanks for your help in advance!
Otsikko: Re: question regarding languages for mods
Kirjoitti: Dannii - tammikuu 16, 2006, 03:06:51 AP
That's exactly it ;)
If you're adding a lot though, you could just put it in a new language file and install both. If the user doesn't have greek, there will be no problem.