Jump to content

Language loader


Recommended Posts

Language loader 1.0

 

This ASI plugin adjusts number of possible languages to configure.

By default GTA San Andreas is able to load 5 of languages, while US menu is configured to display 2 of them.

Even though there are 5 languages, it is not enough for someone who is gonna add new language instead of overwritting existing one

Now you can configure more than 5 languages, up to 11.

Adding languages is very simple: add language GXT key like "FEL_POL" to every used .gxt with a name of added language

according to a GXT. Configure .ini to use added .gxt

 

 

Works with GTA San Andreas v1.0 [uS] HOODLUM No-CD Fixed EXE & GTA: San Andreas v1.01 [EURO] No-CD/Fixed EXE

 

Usage

Make sure you are using following gta_sa.exe versions:

1. GTA San Andreas v1.0 [uS] HOODLUM No-CD Fixed EXE:

EXE size: 14 383 616 bytes

 

You need to have ASI loader installed in order to run .asi

If you have CLEO Library you already have it.

 

- Put LanguageLoader.asi to a root of GTA San Andreas directory.

- Copy one of "text" folders included in archive of this mod.

- "text" here is default configuration with 2 languages only

 

- if you are polish, copy "5 standard languages + 6th polish\text"

- you will get 6 languages possible to configure in menu

 

- "text\5 standard languages from EURO version" 5 languages to configure, just like in EURO versions

 

Configuration

The main purpose of this plugin is not just to use default 5 languages, but do something more - adjust limit of languages.

You can have up to 11 your own configured languages.

 

Adding language

- Open text\Languages.ini

- Find: Number_of_languages in [MAIN] section

- Increase Number_of_languages as you are want to one one.

- Add new section with number of language like this:

 

[6]

GXT_language_key = FEL_POL

GXT_file = polish.gxt

Is_system_metric = 1

 

- GXT_language_key - name of GXT key which contains adjectival name of language e.g FEL_POL

- This GXT key should exist in all of .gxt while name of language will be different in different languages.

- FEL_POL would be "Polish" in american.gxt, while it is "Polski" in polish.gxt

 

- GXT_file - very simple property to understand, it is just name of used GXT file for this language relative to "text\" .

- Is_system_metric - if set to 1, GTA San Andreas will use metric units like meters (M) in Statistics >> Archievements

- as well as opcode 0424: is_system_metric will be affected

- Otherwise if you set it to 0, imperial units such as foots (FT) will be used and 0424 opcode will return false.

 

Now editing all GXT files. Download good GXT editor for .gxt files. I recommend GTA: San Andreas GXT Editor 1.3 created by Hammer83

Download here: http://www.thegtaplace.com/downloads/f568-...-gxt-editor-1-3

 

- Add new .gxt file to "text\" directory.

- Open every of .gxt files (gxt file of added language as well). Do steps as described below

- Select MAIN section

- Click Entry >> Add

- Enter name of GXT key as configured GXT_language_key

- Enter value of created GXT entry, it should be adjectival name of added language according to edited .gxt file.

- It means if you add e.g polish language, then new key in american.gxt should have a value "Polish"

- but the same key in german.gxt would have a value "Polnisch"

 

Informations:

Author: fastman92

Version: 1.0

For: GTA San Andreas

Email: [email protected]

Visit fastman92.tk

Link to comment
https://gtaforums.com/topic/481447-language-loader/
Share on other sites

  • 1 month later...

 

I added a table FEL_BUL (bulgarian) to every GXT file

It`s your problem.

You need to add FEL_BUL as a key to MAIN table.

 

Do as follows for american, the same for other files, but give different content:

open american.gxt using GXT editor

Select MAIN section

Add FEL_BUL. Enter content e.g "Bulgarian".

After you save GXT make sure FEL_BUL is available in MAIN section.

If you still have problems PM me

Edited by fastman92
Link to comment
https://gtaforums.com/topic/481447-language-loader/#findComment-1060721069
Share on other sites

  • 4 years later...
Igor Bogdanoff

 

  • The In-Game menu is ready to be used (go into Options > Mod Configuration). (make sure it's enabled from modloader/.data/config.ini, EnableMenu=true).
It is not working for me very well:

 

n5q3is.png

My bad, it conflict with language loader, thanks for this awesome mod

 

 

@Tomasak & Ural

I've just looked into those conflicts, I can't do anything about it really :/

Language Loader uses the menu original menu table, I've relocated this table.

SAORS calls game functions that aren't supposed to be called from another thread, in it's own thread, super bad in general...

 

Language loader - I'll update my plugin soon.

Link to comment
https://gtaforums.com/topic/481447-language-loader/#findComment-1068755850
Share on other sites

  • 5 months later...

It's worth noting that a glitch occurs if language files from the first edition are present in the same folder as language files from later versions. If this happens, only the language files that are the same version as the language currently selected will appear in the menu, although all languages are still selectable. It's possible that this also happens without this mod, but if anyone isn't seeing an added language, this could be the reason.

Link to comment
https://gtaforums.com/topic/481447-language-loader/#findComment-1069134994
Share on other sites

  • 5 months later...

Language loader - I'll update my plugin soon.

 

2017 update

I've come across one of your old mods, Fastman, the language loader (http://www.gtainside.com/en/sanandreas/other/36797-language-loader-1-0/). What about implementing that? (I know I'm late with suggesting, but I found that mod now :D )

Maybe. Edited by mirh
Link to comment
https://gtaforums.com/topic/481447-language-loader/#findComment-1069490079
Share on other sites

Igor Bogdanoff

>not spamming silent for adding at least EFIGS support for US compact/hodloom exe.

Link to comment
https://gtaforums.com/topic/481447-language-loader/#findComment-1069490120
Share on other sites

  • 7 months later...
  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.