translate GUI

Started by Flyman, Sun 26/05/2013 20:21:25

Previous topic - Next topic

Flyman

Hi I've a problem to translate a gui action button like stile Lucas...
I've a original english language use, pull, open, etc,,,button, I've imported new sprite italian and insert a code to sostitute the english sprite, but only give, use, pull, push, talk_to button work. I don't know what's is wrong in this code??? Help??
my code:
function AdjustLanguage (){
  // --- translate yes/no-keys ---
  string yes_no;
  StrCopy (yes_no, GetTranslation ("SsNn"));
  key_u_yes = StrGetCharAt (yes_no, 0);
  key_l_yes = StrGetCharAt (yes_no, 1);
  key_u_no = StrGetCharAt (yes_no, 2);
  key_l_no = StrGetCharAt (yes_no, 3);
  // --- translate GUI action buttons ---
  SetActionButtons (A_GIVE_TO, "a_button_give 0 //(button number "0") 633 1196 //(new sprite) Ww");
  SetActionButtons (A_PICK_UP, "a_button_pick_up 1 1183 1199 Ee");
  SetActionButtons (A_USE,     "a_button_use 2 1193 1203 Dd");
  SetActionButtons (A_OPEN,    "a_button_open 3 1171 1197 Aa");
  SetActionButtons (A_LOOK_AT, "a_button_look_at 4 1184 1200 Qq");
  SetActionButtons (A_PUSH,    "a_button_push 5 1194 1204 Xx");
  SetActionButtons (A_CLOSE,   "a_button_close 6 1182 1198 Ss");
  SetActionButtons (A_TALK_TO, "a_button_talk_to 7 1192 1201 Cc");
  SetActionButtons (A_PULL,    "a_button_pull 8 1195 1206 Zz");

Khris

You're using a really old template. Where did you get it?

The current version of AGS comes with a 9verb template that has Italian already built in, and setting it as the main language is as easy as changing this line
Code: ags
int lang = eLangEN;
to
Code: ags
int lang = eLangIT;
in guiscript.asc.

Flyman

#2
resolved, there was a resolution imported problem!! Thanks!!

SMF spam blocked by CleanTalk