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

0 Members and 1 Guest are viewing this topic.

Offline fwitt

  • Net Addict
  • Administrator
  • *
  • Posts: 539
  • Karma: 22
  • Gender: Male
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 »
If all those sane people are starting to get you down: http://BlueBuzzards.com/

Offline Skhilled

  • Administrator
  • *
  • Posts: 4467
  • Karma: 55
  • Gender: Male
  • Retro Gamer
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 »



Offline Skhilled

  • Administrator
  • *
  • Posts: 4467
  • Karma: 55
  • Gender: Male
  • Retro Gamer
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

 

Related Topics

  Subject / Started by Replies Last post
94 Replies
18495 Views
Last post February 09, 2008, 11:16:14 AM
by Skhilled
5 Replies
1079 Views
Last post January 12, 2007, 05:46:28 PM
by arez
0 Replies
1585 Views
Last post March 18, 2007, 05:45:44 PM
by Quenya
20 Replies
3054 Views
Last post December 31, 2007, 08:11:16 PM
by islam2hamy
3 Replies
1575 Views
Last post November 17, 2008, 05:48:40 PM
by Niko