Author Topic: What to do if there are no language files for your forums language.  (Read 3761 times)

0 Members and 1 Guest are viewing this topic.

Offline fwitt

  • Net Addict
  • Administrator
  • *
  • Posts: 790
  • Karma: 22
  • Gender: Male
  • SMF Version: SMF 2
The Arcades Language strings are stored in the files Arcade.language.php ArcadeAdmin.language.php and  Modifications.language.php.  If noone has translated these files for your language then this guide is to show you how to do it for yourself.

What do i need to do this?

You need some kind of text editor (I personally use ConTEXT). Word processors add formatting codes that can make the files not work.
A knowledge of both English and the language you are translating to.

For the files Arcade.language.php and ArcadeAdmin.language.php

copy the files Arcade.english.php and ArcadeAdmin.english.php rename them Arcade.language.php and ArcadeAdmin.language.php.

open these files in your text editor and go through the files line by line and for each line of the form

$txt['variable_name'] = 'english string here';

translate the bit in red to

$txt['variable_name'] = 'language string here';

Something to be careful of is the apostrophe as this marks the end of the text string so if it appears in the text it needs to be escaped with a \ so for instance the word isn't would need to be writtern isn\'t to appear correctly in the resulting text certain other characters which mean things in the code such as \ itself need to be treated in this same way.

once you have translated all these lines these files can be uploaded to your default themes languages folder.

Modifications.language.php is similar but can be used by other mods on your forum as well as the arcade.
for this you need to download Modifications.english.php and Modifications.language.php.
(If Modifications.language.php doesnt exist create it in the same way as Arcade.language.php above.)
then open both files in your text editor and copy any that are missing out of Modifications.language.php from Modifications.english.php translating the language string as you do so.

overwrite your existing Modifications.language.php with this new one (I would always recommend backing up any file you replace before doing so.

It would be nice if anyone who translates the arcade for there language posts the language files so that other users can download them.
« Last Edit: December 31, 2007, 01:59:49 PM by fwitt »

Offline Skhilled

  • Friend
  • *
  • Posts: 5288
  • Karma: 65
  • Gender: Male
  • Retro Gamer
  • Arcade Version: More than one version
  • SMF Version: More than 1 version
Re: What to do if there are no language files for your forums language.
« Reply #1 on: December 29, 2007, 04:54:22 PM »
Thanks! Great post!

EDIT: Please use these updated files for editing your language files. These are the same updated files that are in arcade 2.0.16. You can use then in 2.0.15.
« Last Edit: October 24, 2008, 12:31:22 PM by Skhilled »



Offline Skhilled

  • Friend
  • *
  • Posts: 5288
  • Karma: 65
  • Gender: Male
  • Retro Gamer
  • Arcade Version: More than one version
  • SMF Version: More than 1 version
Re: What to do if there are no language files for your forums language.
« Reply #2 on: October 24, 2008, 12:33:41 PM »
The files above have been updated to reflect a few misspellings. Please use these files to create new language files for your language! This should fix a few errors dealing with the language files.

For English users, please upload these files for your arcade.



Offline makalelerr

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • Resim
Re: What to do if there are no language files for your forums language.
« Reply #3 on: June 03, 2010, 07:37:13 AM »
thanks

Offline yes100

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
  • Arcade Version: 2.5 Beta 6
  • SMF Version: SMF 2
Re: What to do if there are no language files for your forums language.
« Reply #4 on: December 20, 2011, 09:35:19 AM »
Hi I have a problem editing the EmailLanguage.
I found the text in my ACP but every time I click save the same text as before is there.
I also didn't find the fitting language file on my server.

Any ideas?

Offline Skhilled

  • Friend
  • *
  • Posts: 5288
  • Karma: 65
  • Gender: Male
  • Retro Gamer
  • Arcade Version: More than one version
  • SMF Version: More than 1 version
Re: What to do if there are no language files for your forums language.
« Reply #5 on: December 20, 2011, 12:59:59 PM »
Can you be a little more specific about what text you are trying to change? If it is for the Arcade, it should be in one of the files I posted above. Otherwise, it is probably a SMF language file.
« Last Edit: December 20, 2011, 01:03:06 PM by Skhilled »



Offline yes100

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
  • Arcade Version: 2.5 Beta 6
  • SMF Version: SMF 2
Re: What to do if there are no language files for your forums language.
« Reply #6 on: December 20, 2011, 03:08:31 PM »
I mean the "ArcadeEmail" Text like emails']['notification_arcade_new_champion_ownsubjectYou are no longer champion of {GAMENAME}bodyYou are no longer champion of {GAMENAME},{champion.name} has beaten your score and is new champion!To reclaim title, play game and get a score better than {champion.score}.If you want to, You can disable this notification from{ARCADE_SETTINGS_URL}{REGARDS}


When I change it and click save in ACP it just turns out the same text as before after refreshed.
I downloaded the whole server content and seached all files with the phase5 tool for keywords but didn't find anything.

Edit: The weird thing is that I don't even find these files you posted on the server but the email with the text works and I find it in the ACP.
Edit2: omg found it now think it was because I did not refresh the server folder in FlashFXP. It worksnow sorry for the hype and thanks for your help.
 
« Last Edit: December 20, 2011, 03:21:20 PM by yes100 »

Offline Skhilled

  • Friend
  • *
  • Posts: 5288
  • Karma: 65
  • Gender: Male
  • Retro Gamer
  • Arcade Version: More than one version
  • SMF Version: More than 1 version
Re: What to do if there are no language files for your forums language.
« Reply #7 on: December 20, 2011, 03:13:05 PM »
It should be in /Themes/language/english/ArcadeEmail.english.php. Make sure you are uploading it to the correct folder and that the capital letters are the same.

If you are not using English then it will be in the folder of the language of your choice.



Offline Skhilled

  • Friend
  • *
  • Posts: 5288
  • Karma: 65
  • Gender: Male
  • Retro Gamer
  • Arcade Version: More than one version
  • SMF Version: More than 1 version
Re: What to do if there are no language files for your forums language.
« Reply #8 on: December 20, 2011, 03:55:10 PM »
No problem and glad you've solved it. :)



Offline fwitt

  • Net Addict
  • Administrator
  • *
  • Posts: 790
  • Karma: 22
  • Gender: Male
  • SMF Version: SMF 2
Re: What to do if there are no language files for your forums language.
« Reply #9 on: December 20, 2011, 09:11:11 PM »
hrmmm four years old might have to do a review and see what needs updating.