Multiple Language VX

Multiple Language VX
v1.0

Introduction


Let's see, another Multiple Language script... this time, for RMVX, featuring everything the RMXP version had, eased up quite a bit, plus a bunch of new stuff - including things people and myself wanted to be in the previous version that never made it to v1.0 (and therefore probably didn't make it in any other game than my BlueSokoban...).


Features


Reincluded Features

  • textfile-based string display within your game
  • included crediting system for language files
  • supports multiple languages accompanying a single game executeable
  • supports passing language files to voluntary translators without needing to pass your unencrypted game, plus adding them post-released via copy&paste easily


New and improved Features

  • shorter and more hinting-on-the-content tags for messages
  • database tags are automatically created by their type and ID, instead of you needing to manually set each
  • back to single text file operating, for simplicity and distribution purposes
  • automatic language file choice if you only have a single language file in the respective folder
  • display of the tag to be specify for undefined strings (means it shows 'M-4', for example, if you call message #4, but don't have it specified in your language file - makes debugging very easy)
  • much more lightweight than the previous version, both in performance (uses rewritten and way easier methods now) and compatibility (completely independent from Game_System and some other defaults) means.
  • undefined actor, class, skill, item or equipment names get replaced with the name the database contains (regular name output, if you want).
  • less thrown-into-the-blue language selection scene due to a customizeable header


Features planned

  • Faces and choices in messages
  • Support for language-specific images by reading them from a folder in the Language directory
  • Replacement strings to display values from game_variables, actor names, gold, and a few more; not only in messages but everywhere


Screenshots

Image


Demo


Multiple Language VX 1.0.zip hosted on box.net (212 KB)
Requires RMVX RTP to run


Script


  1. #==============================================================================
  2. # Multiple Language VX                                                                               v1.0
  3. #------------------------------------------------------------------------------
  4. # Script by BlueScope
  5. #==============================================================================
  6.  
  7. module Language
  8.   #--------------------------------------------------------------------------
  9.   def self.list
  10.      entries = Dir.entries('Language/.')
  11.      entries.delete_at(0); entries.delete_at(0)
  12.      entries.sort!
  13.      return entries
  14.   end
  15.   #--------------------------------------------------------------------------
  16.   attr  :value
  17.   @value = list[0]
  18.   #--------------------------------------------------------------------------
  19.   def self.set_value(id)
  20.      @value = self.list[id]
  21.   end
  22.   #--------------------------------------------------------------------------
  23.   def self.test(id)
  24.      id = id.split(' ')
  25.      file = File.open('Language/' + @value)
  26.      content = file.readlines
  27.      for line in 0..content.size-1
  28.         if content[line].include?(id[0] + ' ')
  29.            return true
  30.         end
  31.      end
  32.      return false
  33.   end
  34.   #--------------------------------------------------------------------------
  35.   def self.output(id)
  36.      id = id.split(' ')
  37.      temp_content = nil
  38.      file = File.open('Language/' + @value)
  39.      content = file.readlines
  40.      for line in 0..content.size-1
  41.         if content[line].include?(id[0] + ' ')
  42.            temp_content = content[line]
  43.            temp_content.gsub!((id[0] + ' '), "")
  44.            temp_content.chomp!
  45.         end
  46.         if temp_content == nil
  47.            temp_content = '[' + id.to_s + ']'
  48.         end
  49.      end
  50.      return temp_content
  51.   end
  52.   #--------------------------------------------------------------------------
  53. end
  54.  
  55.  
  56. class Bitmap
  57.   #-------------------------------------------------------------------------
  58.   def draw_wrap_text(x, y, width, height, text, lineheight)
  59.      strings = text.split
  60.      strings.each do |string|
  61.         word = string + ' '
  62.         word_width = text_size(word).width
  63.         x, y = 0, y + lineheight if x + word_width > width
  64.         self.draw_text(x, y, word_width, height, word)
  65.         x += word_width
  66.      end
  67.   end
  68.   #-------------------------------------------------------------------------
  69. end
  70.  
  71.  
  72. class Game_Actor < Game_Battler
  73.   #--------------------------------------------------------------------------
  74.   alias multiple_language_actor_setup setup
  75.   def setup(actor_id)
  76.      multiple_language_actor_setup(actor_id)
  77.      if Language.test('A-' + actor.id.to_s)
  78.         @name = Language.output('A-' + actor.id.to_s)
  79.      else
  80.         @name =   actor.name
  81.      end
  82.   end
  83.   #--------------------------------------------------------------------------
  84. end
  85.  
  86.  
  87. class Game_Enemy < Game_Battler
  88.   #--------------------------------------------------------------------------
  89.   alias multiple_language_battler_initialize initialize
  90.   def initialize(index, enemy_id)
  91.      multiple_language_battler_initialize(index, enemy_id)
  92.      if Language.test('E-' + enemy.id.to_s)
  93.         @original_name = Language.output('E-' + enemy.id.to_s)
  94.      else
  95.         @original_name = enemy.name
  96.      end
  97.   end
  98.   #--------------------------------------------------------------------------
  99. end
  100.  
  101.  
  102. class Window_Base < Window
  103.   #--------------------------------------------------------------------------
  104.   def draw_actor_class(actor, x, y)
  105.      self.contents.font.color = normal_color
  106.      text = 'C-' + actor.class.id.to_s
  107.      if Language.test(text) or actor.class.name == ""
  108.         self.contents.draw_text(x, y, 108, WLH, Language.output(text))
  109.      else
  110.         self.contents.draw_text(x, y, 108, WLH, actor.class.name)
  111.      end
  112.   end
  113.   #--------------------------------------------------------------------------
  114.   def draw_item_name(item, x, y, enabled = true)
  115.      if item.is_a?(RPG::Skill); type = 0
  116.      elsif item.is_a?(RPG::Item); type = 2
  117.      elsif item.is_a?(RPG::Weapon); type = 4
  118.      elsif item.is_a?(RPG::Armor); type = 6; end
  119.      if item != nil
  120.         draw_icon(item.icon_index, x, y, enabled)
  121.         self.contents.font.color = normal_color
  122.         self.contents.font.color.alpha = enabled ? 255 : 128
  123.         text = 'D-' + type.to_s + '-' + item.id.to_s
  124.         if Language.test(text) or item.name == ""
  125.            self.contents.draw_text(x + 24, y, 172, WLH, Language.output(text))
  126.         else
  127.            self.contents.draw_text(x + 24, y, 172, WLH, item.name)
  128.         end
  129.      end
  130.   end
  131.   #--------------------------------------------------------------------------
  132. end
  133.  
  134.  
  135. class Window_Item < Window_Selectable
  136.   #--------------------------------------------------------------------------
  137.   def update_help
  138.      if item.is_a?(RPG::Item); type = 3
  139.      elsif item.is_a?(RPG::Weapon); type = 5
  140.      elsif item.is_a?(RPG::Armor); type = 7; end
  141.      text = Language.output('D-' + type.to_s + '-' + item.id.to_s)
  142.      @help_window.set_text(item == nil ? "" : text)
  143.   end
  144.   #--------------------------------------------------------------------------
  145. end
  146.  
  147.  
  148. class Window_Skill < Window_Selectable
  149.   #--------------------------------------------------------------------------
  150.   def update_help
  151.      text = Language.output('D-1-' + skill.id.to_s)
  152.      @help_window.set_text(skill == nil ? "" : text)
  153.   end
  154.   #--------------------------------------------------------------------------
  155. end
  156.  
  157.  
  158. class Window_Message < Window_Selectable
  159.   #--------------------------------------------------------------------------
  160.   def start_message
  161.      @text = $game_message.texts
  162.   end
  163.   #--------------------------------------------------------------------------
  164.   def update_message
  165.      contents.clear
  166.      if Language.test(@text[0]) == false
  167.         text = @text[0]
  168.      else
  169.         text = Language.output(@text[0])
  170.      end
  171.      contents.draw_wrap_text(0, -37, self.width-32, self.height-32, text, WLH)
  172.      finish_message
  173.   end
  174.   #--------------------------------------------------------------------------
  175. end
  176.  
  177.  
  178. class Window_Version < Window_Base
  179.   #--------------------------------------------------------------------------
  180.   def initialize
  181.      super(224, 192, 288, 96)
  182.      refresh
  183.   end
  184.   #--------------------------------------------------------------------------
  185.   def refresh
  186.      self.contents.clear
  187.      self.contents.font.color = system_color
  188.      self.contents.draw_text(4, 0, self.width-40, 32, Language.output('S-2'), 0)
  189.      self.contents.draw_text(4, 32, self.width-40, 32, Language.output('S-4'), 0)
  190.      self.contents.font.color = normal_color
  191.      self.contents.draw_text(4, 0, self.width-40, 32, Language.output('S-3'), 2)
  192.      self.contents.draw_text(4, 32, self.width-40, 32, Language.output('S-5'), 2)
  193.   end
  194.   #--------------------------------------------------------------------------
  195. end
  196.  
  197.  
  198. class Window_Header < Window_Base
  199.   #--------------------------------------------------------------------------
  200.   def initialize
  201.      super(32, 128, 480, 64)
  202.      refresh
  203.   end
  204.   #--------------------------------------------------------------------------
  205.   def refresh
  206.      self.contents.clear
  207.      self.contents.draw_text(4, 0, self.width-40, 32, Language.output('S-1'))
  208.   end
  209.   #--------------------------------------------------------------------------
  210. end
  211.  
  212.  
  213. class Scene_Battle < Scene_Base
  214.   #--------------------------------------------------------------------------
  215.   def display_exp_and_gold
  216.      exp = $game_troop.exp_total
  217.      gold = $game_troop.gold_total
  218.      $game_party.gain_gold(gold)
  219.      text = sprintf(Vocab::Victory, $game_party.name)
  220.      if exp > 0
  221.         text = sprintf(Vocab::ObtainExp, exp)
  222.      end
  223.      if gold > 0
  224.         text = sprintf(Vocab::ObtainGold, gold, Vocab::gold)
  225.      end
  226.      wait_for_message
  227.   end
  228.   #--------------------------------------------------------------------------
  229. end
  230.  
  231.  
  232. class Scene_Language < Scene_Base
  233.   #--------------------------------------------------------------------------
  234.   def start
  235.      super
  236.      @header_window = Window_Header.new
  237.      @background_window = Window_Base.new(32, 192, 192, 96)
  238.      @command_window = Window_Command.new(192, Language.list)
  239.      @command_window.x = 32
  240.      @command_window.height = 80 if @command_window.height > 80
  241.      @command_window.y = 240 - @command_window.height / 2
  242.      @command_window.opacity = 0
  243.      @version_window = Window_Version.new
  244.   end
  245.   #--------------------------------------------------------------------------
  246.   def terminate
  247.      @header_window.dispose
  248.      @background_window.dispose
  249.      @command_window.dispose
  250.      @version_window.dispose
  251.   end
  252.   #--------------------------------------------------------------------------
  253.   def update
  254.      @command_window.update
  255.      if Input.press?(Input::UP) or Input.press?(Input::DOWN)
  256.         Language.set_value(@command_window.index)
  257.         @header_window.refresh; @version_window.refresh
  258.      end
  259.      if Input.trigger?(Input::C)
  260.         $scene = nil
  261.      end
  262.   end
  263.   #--------------------------------------------------------------------------
  264. end
  265.  
  266.  
  267. begin
  268.   Graphics.freeze
  269.   entries = Dir.entries('Language/.')
  270.   if entries.size < 3
  271.      p "You don't have any language files in the respective directory."
  272.      exit
  273.   elsif entries.size > 3
  274.      $data_system = load_data("Data/System.rvdata")
  275.      $game_system = Game_System.new
  276.      $scene = Scene_Language.new
  277.   else
  278.      Language.set_value(0)
  279.      $scene = Scene_Title.new
  280.   end
  281.   $scene.main while $scene != nil
  282. end
Expand to see the code.

  1. module Vocab
  2.   #--------------------------------------------------------------------------
  3.   ShopBuy             = Language.output('V-1')
  4.   ShopSell           = Language.output('V-2')
  5.   ShopCancel        = Language.output('V-3')
  6.   Possession        = Language.output('V-4')
  7.   ExpTotal           = Language.output('V-5')
  8.   ExpNext             = Language.output('V-6')
  9.   SaveMessage       = Language.output('V-7')
  10.   LoadMessage       = Language.output('V-8')
  11.   File                  = Language.output('V-9')
  12.   PartyName          = Language.output('V-10')
  13.   Emerge              = Language.output('V-11')
  14.   Preemptive        = Language.output('V-12')
  15.   Surprise           = Language.output('V-13')
  16.   EscapeStart       = Language.output('V-14')
  17.   EscapeFailure    = Language.output('V-15')
  18.   Victory             = Language.output('V-16')
  19.   Defeat              = Language.output('V-17')
  20.   ObtainExp          = Language.output('V-18')
  21.   ObtainGold        = Language.output('V-19')
  22.   ObtainItem        = Language.output('V-20')
  23.   LevelUp             = Language.output('V-21')
  24.   ObtainSkill       = Language.output('V-22')
  25.   DoAttack           = Language.output('V-23')
  26.   DoGuard             = Language.output('V-24')
  27.   DoEscape           = Language.output('V-25')
  28.   DoWait              = Language.output('V-26')
  29.   UseItem             = Language.output('V-27')
  30.   CriticalToEnemy = Language.output('V-28')
  31.   CriticalToActor = Language.output('V-29')
  32.   ActorDamage       = Language.output('V-30')
  33.   ActorLoss          = Language.output('V-31')
  34.   ActorDrain        = Language.output('V-32')
  35.   ActorNoDamage    = Language.output('V-33')
  36.   ActorNoHit        = Language.output('V-34')
  37.   ActorEvasion     = Language.output('V-35')
  38.   ActorRecovery    = Language.output('V-36')
  39.   EnemyDamage       = Language.output('V-37')
  40.   EnemyLoss          = Language.output('V-38')
  41.   EnemyDrain        = Language.output('V-39')
  42.   EnemyNoDamage    = Language.output('V-40')
  43.   EnemyNoHit        = Language.output('V-41')
  44.   EnemyEvasion     = Language.output('V-42')
  45.   EnemyRecovery    = Language.output('V-43')
  46.   ActionFailure    = Language.output('V-44')
  47.   #--------------------------------------------------------------------------
  48.   def self.level; return Language.output('V-45'); end
  49.   def self.level_a; return Language.output('V-46'); end
  50.   def self.hp; return Language.output('V-47'); end
  51.   def self.hp_a; return Language.output('V-48'); end
  52.   def self.mp; return Language.output('V-49'); end
  53.   def self.mp_a; return Language.output('V-50'); end
  54.   def self.atk; return Language.output('V-51'); end
  55.   def self.def; return Language.output('V-52'); end
  56.   def self.spi; return Language.output('V-53'); end
  57.   def self.agi; return Language.output('V-54'); end
  58.   def self.weapon; return Language.output('V-55'); end
  59.   def self.armor1; return Language.output('V-56'); end
  60.   def self.armor2; return Language.output('V-57'); end
  61.   def self.armor3; return Language.output('V-58'); end
  62.   def self.armor4; return Language.output('V-59'); end
  63.   def self.weapon1; return Language.output('V-60'); end
  64.   def self.weapon2; return Language.output('V-61'); end
  65.   def self.attack; return Language.output('V-62'); end
  66.   def self.skill; return Language.output('V-63'); end
  67.   def self.guard; return Language.output('V-64'); end
  68.   def self.item; return Language.output('V-65'); end
  69.   def self.equip; return Language.output('V-66'); end
  70.   def self.status; return Language.output('V-67'); end
  71.   def self.save; return Language.output('V-68'); end
  72.   def self.game_end; return Language.output('V-69'); end
  73.   def self.fight; return Language.output('V-70'); end
  74.   def self.escape; return Language.output('V-71'); end
  75.   def self.new_game; return Language.output('V-72'); end
  76.   def self.continue; return Language.output('V-73'); end
  77.   def self.shutdown; return Language.output('V-74'); end
  78.   def self.to_title; return Language.output('V-75'); end
  79.   def self.cancel; return Language.output('V-76'); end
  80.   def self.gold; return Language.output('V-77'); end
  81.   #--------------------------------------------------------------------------
  82. end
Expand to see the code.



Instructions


Basic Explanation Spoiler
The script works by replacing the regular text strings set by default in the script editor and database with methods passing that string to the Language module. This module looks for a line inside a textfile containing that string (I'll call those strings tags from now on, because you 'tag' the lines you want to draw), and if it's there, draws it ingame. If it isn't, it will display the tag itself enclosed by brackets as an indicator that you still need to define that tag's content.
What it does until now is nothing more than the default. The trick is that the player can choose what language file to go with at the start of the program start, allowing your game to have multiple text sets.

Installation Spoiler
Copy the Multiple Language VX script into your project, directly above Main, but not below '? Main Process'. You might want to create a '? Multiple Language' subentry similar to the one in the demo.
If you want to use the Vocab module, copy that one somewhere in your script editor, below the default Vocab module.

If you experience problems, just take a look at how the demo stores the scripts.

Tagging Guide Spoiler
I chose different tags this time to give the viewer more of an idea what he's translating right now. To make it easier for both co-developers and external translators, you should stick with this setting, while of course you can enhance it any way you need.

A-x > Actor names, x being their database ID.
B > not used yet, but might serve as an optional battle message container in the future for overviewing purposes.
C-x > Class names, x being their database ID.
D-y-x > Skill and Item names (even numbers) and descriptions (odd numbers). 0/1 are used for skills, 2/3 for items, 4/5 for weapons, and 6/7 for armor parts, each replacing y; x is the database ID.
E-x > Enemy names, x being their database ID.
F > Reserved for a planned, unlistet feature.
M-x > Messages, tag is to be inserted completely into the message entry (you'd insert 'M-45', not just '45').
S-x > System tags called in custom scripts within the script editor. Just like the messages, tags are to be used with the leading 'S-'.
V-x > Vocab module tags, pointing to strings defined in that module. You don't have to set these unless you create custom ones; if so, please copy the notation from my predefined Vocab module.

You can always add custom tags, but please stick with the letter-hyphen-number notation to prevent confusion. Also, don't use any of the letters listed above, as you might experience compatibility errors if you apply a later version of this script and I added those.

Language File mays and may-nots Spoiler
Just a small overview about what tricks you can do with the language contents to ease up your game development process, as well as things you may not do in order to make the script work as it should.

  • You can name items and skills within the database any way you want, for example to see what you give the actor with an event command. While you wouldn't have to name them at all since their names are read from the txt-file, you'd need to look their ID up in the database or text file every time you'd give your party some items.
  • You can comment in the language textfiles whereever you want, as long as you don't write in the tagged lines. The # as comment indicator isn't necessary, but I'd suggest using it to not confuse anyone.

  • You shouldn't include a tag in another tag's content (or a comment), for example having the line 'M-24 This is the message before M-25.', because if you don't have M-25 specified, the message window will display this line for it, because it contains 'M-25'.
  • For obvious reasons, you shouldn't have two equal tags... if you still have them, the first one will be chosen by the script.




FAQ


Q: As you, BlueScope, are German... will you translate my project for me into that language?
A: That depends on your game, your attitude when asking and the time I can spare, but in general, I'd like to, of course.

Q: As you, BlueScope, are German... do you want me to translate your upcoming project into [insert language here]?
A: Well, basically, hell yeah, because you can never have enough languages, huh... I still have a lot to do on my current project until I could call it somewhere close to being finished, so don't make promises yet.

Q: My custom system uses images with text. How can I assign a language-specific image?
A: I'll add a hopefully easy-to-use feature to read image tags in a future version.

Q: If you have important stuff like message features ToDo-list... why is this v1.0?
A: Because what you have here is what you'd need for a completed game. The message window works flawless, just misses a couple of features... also, from here on, you won't need to re-assemble your game to adjust it to newer versions - you can just replace the script and enjoy the new features.

Q: Who are Markus Reinhardt and Kenny Hatcher?
A: Impressively underdeveloped characters I created just for the prupose of not having placeholders in the opening screen.


Compatibility


Theory

Should be compatible with any scripts that don't modify Window_Message (huge incompatibility probability), Window_Base or Scene_Battle's treasure display.


Modified methods

Game_Actor > initialize (aliased method, shouldn't interfere with whatever you have in any way)
Game_Enemy > initialize (aliased method, shouldn't interfere with whatever you have in any way)
Window_Base > draw_class_name, draw_item_name
Window_Item > update_help
Window_Skill > update_help
Window_Message > start_message, update_message
Scene_Battle > display_exp_and_gold (dependency on this will be removed along with special characters in messages being added)


Author's Notes


What can I say... you should use this. I myself find it easier to work with textfile strings than with the regular RM interface that especially creeps the fuck out of me as far as messages go. I think being a game designer means fulfilling the requests of the gamers, so setting the base for your game being translated is something very productive, I think... you not having to translate the game yourself and still be able to keep the uncompiled project to yourself, keeping your project small and neat without the need of multiple versions, is another plus...
I'm positive that games in general, but especially games from non-English game developers would gain from this script... I wonder if it'll come any far.


Credits and Thanks


BlueScope, for scripting and pushing me to always improve my stuff... that bastard :p
vgvgf, for helping me out with a code issue for Multiple Language XP, whose solution is also vital to Multiple Language VX
Trickster, for the draw_wrap_text method I once again stripped from the MACL and which probably is the most useful non-default method ever written


Terms and Conditions


You may use and/or modify this script in any way you want, and/or release your modifications, as long as you give proper credit to me, BlueScope. You may not use this for commercial projects (in this context refering to profit-oriented) of any sort, including non-RPG Maker projects. You may not remove or modify the original header included in the script.
The actual mentioning of my nickname at some point in the game in a crediting context (i.e. opening credits, ending credits) is not necessary, but apprechiated.
1. it is nice
2. but i have a one this is better *ätsch*

Bug:
-you cant change the lang at running

Idea: make multilang Messange from NPCs


Freak Idea: whould you work together with me?
1st - thanks.
2nd - good for ya. :p It's not a contest for me though, so yeah...

For the 'bug', it's no bug, not even a flaw... it's totally intentional that you can't switch languages on the fly, for two reasons: a) If you choose a language, you most likely choose it because you're smart an understand that language, and b) if people use script conditionals using text strings stored within the Language file (unlikely, but hey), it'll cause bugs if you change the language during the process between setting that string and asking for it.

I don't get your 'idea', though... you can assign language strings to every message window there is by default, so I don't see what else you'd want to add. If you're talking about non-active messages (like in that system ccoa released aeons ago), I won't add that because I'm not going to do a custom message system here.

For the working together, you might show me what you have, since I don't think you released it.
can u make it support languages like greek/japaneese where they dont use the alphabet?? cos in my game ive always wanted like when you goto a far away town they speak a totally foreign language, instead of all the people in the entire game speaking one language
@apkx24 : you can use all languages that the font support. (-> UTF-8)


Info: this is for the lang in the WHOLE game.
to let NPCs speak outer stuff than you i will think about
?? dont understand your english very well....
u can simply call the script and change the font in game for a certain message, right?
Like hanmac said, since you can save and load txt-files with UTF-8 encoding (you can choose this while saving files with Windows' default notepad application), you can add every possible character into your language files, including special characters of any sort.

For your idea, though, I don't think you need a script like this... because if you want different languages for different regions, making a default one selectable wouldn't make that much sense... also, from a gamedesign point-of-view, I wouldn't suggest you going with that idea, because while it's sure innovative, you'd have to learn the respective languages to progress - unless you include translators or stuff like that - and that's a total no-go, for obvious reasons...

It's not in any way related, but if you want to change the Font mid-game, you'd have to call a script, containing this line:
Font.default_name = "Arial"
Expand to see the code.
BlueScope wrote:
Like hanmac said, since you can save and load txt-files with UTF-8 encoding (you can choose this while saving files with Windows' default notepad application), you can add every possible character into your language files, including special characters of any sort.

For your idea, though, I don't think you need a script like this... because if you want different languages for different regions, making a default one selectable wouldn't make that much sense... also, from a gamedesign point-of-view, I wouldn't suggest you going with that idea, because while it's sure innovative, you'd have to learn the respective languages to progress - unless you include translators or stuff like that - and that's a total no-go, for obvious reasons...

It's not in any way related, but if you want to change the Font mid-game, you'd have to call a script, containing this line:
Font.default_name = "Arial"
Expand to see the code.



When my German Game is done, do you want to make an English translation with this? 8D
Well, of course I can't promise anything without knowing the time and date and what I'm up to then, ya know... and also, I'm not the best English speaker myself ^^ but if you think I'm doing alright and you need a translation somewhen, just drop me a line and I'll look into it.
My Demo is already done :P
if you want to translate it or test it feel free to do so.
(look into my signature :P)
I managed to get your last Language script to work with images, btw.


"Language/" + $game_system.language + "/Text Graphics/", filename"
Expand to see the code.


but since this one works a little different the method I used wouldn't really work. I did however find one problem and I don't really understand why I'm getting the problem. I had a friend who translated my game into Arabic but the text shows up mirrored since Arabic is read from right to left.
@yion: I'll have a look into that when I get home from work...

@numbnuts: The problem I had with that (I thought about that method before as well, of course), and as well with the language files themselves, was that it doesn't encrypt the default graphics coming with the game, which is why that feature will be implemented when I include the possibility to use an encrypted language file as the default language. The updates to this script are kinda in cascading intervalls really, because I'm only here and then working on it... I have a couple of more important scripts on my hands that are necessary for my project to be completed before I can go on, so yeah...
BlueScope wrote:
@yion: I'll have a look into that when I get home from work...


Ty.
(just replying so you are able to Reply when you are done. XD)
I think Ive found a bug.

If i make a message with a case, only the first tag shows its contet, the other tags do not shows up.
If you mean choices, then yeah, I'm completely aware of that. If you check the ToDo list, you'll see that it's a planned feature for the upcoming version. Thanks for trying, though ^^
sorry, ive not noticed the  that actually you had a todo list.

Anywai, its called choices? aw this damn language hahahha Im only usued to the program language sintaxe XD
Wow that's a pretty neat script! Of course it's a lot of effort to do this...
Oh this is awesome!

I was wondering if there's something that could make a translation process easier in VX. Then suddenly I found this script.

Salute for you dude!
@Lucas: It's cool ;) I just hope I'll get that list done somewhen soon...

@Frederick: It is a lot of effort if you merge it into an existing project. However, if you include and work with this script from the beginning, you won't have as much of a hazzle, and it also eases some things up, such as the message text wrapping you don't need to bother for anymore. Ultimately, I think that it's a very comfortable script to use, hopefully also for non-scripters.

@lahandi: I'm glad it's of use to ya... ^^
I'll youse your script in my game, since i want to do it in english and portuguese ^_^

ow, if only the list/choices where ok by now XD

Do you have any idea of why the mouse dosnt works properly? it does the "case selection" but it do not "change" the selection (just the graphic shows to be moved to another file, but the game does not understand it as a change of files... then if I try to select the second file (in my case, first is englis, second is português) it just "highlight" the second but the window does not update, still with the first file info (english, versio XX, translated by xXXX) and if i do select the second one it will enter the first... but if I do it by the keyboard (arrows) its ok and works just fine...
Yeah, that's because I have the passive windows update on input, not always, to save some memory. If you want to get it running with whatever Mouse script you use, replace this snippet of my script...
  def update
    @command_window.update
    if Input.press?(Input::UP) or Input.press?(Input::DOWN)
      Language.set_value(@command_window.index)
      @header_window.refresh; @version_window.refresh
    end
    if Input.trigger?(Input::C)
      $scene = nil
    end
  end
Expand to see the code.
...to this...
  def update
    @command_window.update
    Language.set_value(@command_window.index)
    @header_window.refresh; @version_window.refresh
    if Input.trigger?(Input::C)
      $scene = nil
    end
  end
Expand to see the code.

This is not recommended, though, and you should monitor your FPS while in that scene (press F2 to show them in the title bar). If you notice a serious slowdown on a mid-class machine, you might consider using a method involving the Mouse script itself.
WTF?! ITS AT 4FPS!!! OMYGAWD!!
Ok... i will keep it as it "was" O.o

(im using a notebook to make the game)

Actualy Im just a newbie in RGSS(1 and 2), so I will just take this and left aside
So I am trying to make my game using korean ì €¢Ë†Ã« €¦ €¢Ã­ €¢ËœÃ¬ €žÂ¸Ã¬Å¡ €! but when I edit the text it works in english, but in korean it just shows little boxes, how do I fix this? whats going on? I am saving the .txt file in UTF-8 format, but it is not working.
Make sure you're using a font supporting Korean letters, as the default font by RMVX isn't, as far as I know or expect. You might try the default Windows fontfaces (Arial, Verdana, ...), but you surely know some specific Korean fontfaces (I don't know about any, but those usually are preinstalled with foreign language PCs, such as MS Gothic for Japanese PCs... which might also work for Korean).
General information piece: Fontfaces can only contain so many letters (precisely 65536), so you can't possibly put all characters there are in one font. Therefore, fonts are individually designed for their respective countries. That doesn't mean there's different versions of Arial over here and in Asian countries, but there are several font faces designed to handle specific letter systems and alphabets, therefore better used for such purposes.

If that doesn't work... I'm afraid I can't help ya. UTF-8 should be capeable of saving those characters, so the problem might be in RMVXs' internal engine.
you need the font: "umeplus-gothic" with this should be running
I had problem with writing in Arabic and Hebrew with RMVX

this how arabic fine :
http://img509.imageshack.us/img509/4184/arabrpgsj8.png[/img]

but in the game :
http://img113.imageshack.us/img113/625/arabrpg1lg7.png[/img]
and I dunno why RGSS cannot read Arabic the Arabic letters are separated ^^
I hope their a way to make it read it, I tried all way to encoding but it seem the problem from rgss itself.
As far as I know, non-Latin alphabet systems should be completely supported, as RMVX should do nothing else than using the fontfaces you use, aka using a different (and fully working) fontface should be fine. However, I might of course be mistaken with that, and Enterbrain was like "Yeah, let's make our own font interpretation engine!!!" for fuck's sake.
Either way, I can see you're using RMVX's default message system here, not mines, so I wonder what you mean with "encoding", as you can't define an encoding format within RMVX, only if you read the messages text from a txt file.

For future reports of problems with non-Latin languages, please include a sample text of the language in non-image form, aka written text. That way, I can try it out myself and be more specific in my replies. I also own several professional font packages, making me able to test more than the average Windows default fonts user can.

@Jaemin: Look for the font 'Gulim', which should support all the characters you need.
Thanks so much for the information I know have it working exactly like I wanted it to.  :straightthumb:

I just added to main 

Font.default_name = "Malgun Gothic"

Then I saved my .txt in Malgun Gothic font, at first it didn't work because the script was set to hangul (the korean alphabet), but then I changed it to western and now I have Korean and English side by side. Korean is the second language I am learning so I wanted the characters in the game to speak both Korean and/or English. Thanks everyone  🙂

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=52680