Gang-Garrison-2 icon indicating copy to clipboard operation
Gang-Garrison-2 copied to clipboard

i18n support in menus, German l10n (incomplete)

Open hikari-no-yume opened this issue 9 years ago • 6 comments

This adds basic internationalisation (i18n) support, by adding a _(string) function to look up localised strings in the current language. These strings are loaded from GGON .lang files.

It then adds use of _() to GG2's menus, but not its in-game text just yet, and a preliminary German localisation strings file for those localisable areas.

Since German requires non-ASCII characters, this is branched off from the Windows-1252 support pull request, which is a prerequisite.

This isn't the be considered complete and mergeable just yet, since it's only covering the menus for now, and I haven't got round to the necessary changes in width of some of them to accommodate German's verbosity. Also, my German's probably riddled with errors.

Note that in order to review .lang files, you'll need to view them in the Windows-1252 encoding that Gang Garrison 2 uses. I suggest clicking "View", then "Raw", then changing your browser's encoding settings for that page (in Firefox: View > Text Encoding).

hikari-no-yume avatar Jul 09 '15 01:07 hikari-no-yume

I object to the script name.

Andrea Faulds [email protected] schrieb am Do., 09.07.2015, 3:00:

This adds basic internationalisation (i18n) support, by adding a _(string) function to look up localised strings in the current language. These strings are loaded from GGON .lang files.

It then adds use of _() to GG2's menus, but not its in-game text just yet, and a preliminary German localisation strings file for those localisable areas.

Since German requires non-ASCII characters, the Windows-1252 support pull request https://github.com/Medo42/Gang-Garrison-2/pull/282 is a prerequisite.

This isn't the be considered complete and mergeable just yet, since it's only covering the menus for now. Also, my German's probably riddled with errors.

Note that in order to review .lang files, you'll need to view them in the Windows-1252 encoding that Gang Garrison 2 uses. I suggest clicking "View", then "Raw", then changing your browser's encoding settings for that page

(in Firefox: View > Text Encoding).

You can view, comment on, or merge this pull request online at:

https://github.com/Medo42/Gang-Garrison-2/pull/283 Commit Summary

  • Add Windows-1252 characters to gg2Font
  • Add i18n support to menus, and German menu l10n

File Changes

  • M Documentation/ggon.md https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-0 (2)
  • A Source/de.lang https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-1 (140)
  • M Source/gg2/Objects/Menus/BuilderMenuController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-2 (8)
  • M Source/gg2/Objects/Menus/Hosting Menu Elements/HostOptionsController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-3 (20)
  • M Source/gg2/Objects/Menus/InGameMenuController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-4 (10)
  • M Source/gg2/Objects/Menus/Lobby Elements/LobbyNameController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-5 (2)
  • M Source/gg2/Objects/Menus/Lobby Elements/LobbySideController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-6 (4)
  • M Source/gg2/Objects/Menus/Main Menu Elements/MainMenuController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-7 (22)
  • M Source/gg2/Objects/Menus/Options Menus/AdvControlsController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-8 (26)
  • M Source/gg2/Objects/Menus/Options Menus/ControlsController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-9 (28)
  • M Source/gg2/Objects/Menus/Options Menus/EngineOptionsController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-10 (62)
  • M Source/gg2/Objects/Menus/Options Menus/HUDOptionsController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-11 (26)
  • M Source/gg2/Objects/Menus/Options Menus/OptionsController.events/Create.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-12 (26)
  • A Source/gg2/Scripts/Internationalisation/_.gml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-13 (12)
  • A Source/gg2/Scripts/Internationalisation/_resources.list.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-14 (5)
  • A Source/gg2/Scripts/Internationalisation/i18nInit.gml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-15 (42)
  • M Source/gg2/Scripts/Maps/Builder/builder_init.gml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-16 (634)
  • M Source/gg2/Scripts/_resources.list.xml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-17 (1)
  • M Source/gg2/Scripts/game_init.gml https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-18 (10)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 100.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-19 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 101.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-20 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 102.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-21 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 103.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-22 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 104.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-23 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 105.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-24 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 106.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-25 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 107.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-26 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 108.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-27 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 109.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-28 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 110.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-29 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 111.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-30 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 112.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-31 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 113.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-32 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 114.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-33 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 115.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-34 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 116.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-35 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 117.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-36 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 118.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-37 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 119.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-38 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 120.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-39 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 121.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-40 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 122.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-41 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 123.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-42 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 124.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-43 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 125.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-44 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 126.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-45 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 127.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-46 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 128.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-47 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 129.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-48 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 130.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-49 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 131.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-50 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 132.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-51 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 133.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-52 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 134.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-53 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 135.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-54 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 136.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-55 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 137.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-56 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 138.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-57 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 139.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-58 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 140.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-59 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 141.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-60 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 142.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-61 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 143.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-62 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 144.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-63 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 145.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-64 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 146.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-65 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 147.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-66 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 148.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-67 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 149.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-68 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 150.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-69 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 151.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-70 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 152.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-71 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 153.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-72 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 154.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-73 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 155.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-74 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 156.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-75 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 157.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-76 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 158.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-77 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 159.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-78 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 160.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-79 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 161.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-80 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 162.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-81 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 163.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-82 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 164.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-83 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 165.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-84 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 166.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-85 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 167.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-86 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 168.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-87 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 169.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-88 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 170.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-89 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 171.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-90 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 172.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-91 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 173.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-92 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 174.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-93 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 175.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-94 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 176.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-95 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 177.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-96 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 178.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-97 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 179.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-98 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 180.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-99 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 181.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-100 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 182.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-101 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 183.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-102 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 184.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-103 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 185.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-104 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 186.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-105 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 187.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-106 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 188.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-107 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 189.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-108 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 190.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-109 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 191.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-110 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 192.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-111 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 193.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-112 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 194.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-113 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 195.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-114 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 196.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-115 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 197.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-116 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 198.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-117 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 199.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-118 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 200.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-119 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 201.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-120 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 202.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-121 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 203.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-122 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 204.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-123 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 205.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-124 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 206.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-125 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 207.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-126 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 208.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-127 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 209.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-128 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 210.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-129 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 211.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-130 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 212.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-131 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 213.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-132 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 214.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-133 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 215.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-134 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 216.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-135 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 217.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-136 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 218.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-137 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 219.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-138 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 220.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-139 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 221.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-140 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 222.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-141 (0)
  • M Source/gg2/Sprites/GameElements/gg2FontS.images/image 63.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-142 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 94.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-143 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 95.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-144 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 96.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-145 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 97.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-146 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 98.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-147 (0)
  • A Source/gg2/Sprites/GameElements/gg2FontS.images/image 99.png https://github.com/Medo42/Gang-Garrison-2/pull/283/files#diff-148 (0)

Patch Links:

  • https://github.com/Medo42/Gang-Garrison-2/pull/283.patch
  • https://github.com/Medo42/Gang-Garrison-2/pull/283.diff

— Reply to this email directly or view it on GitHub https://github.com/Medo42/Gang-Garrison-2/pull/283.

Medo42 avatar Jul 09 '15 15:07 Medo42

You might think it's far too short. But, this is actually the standard abbreviation used for GNU's gettext, so it seemed fitting.

hikari-no-yume avatar Jul 09 '15 15:07 hikari-no-yume

I guess I'd have to figure out how widely used this is.

Andrea Faulds [email protected] schrieb am Do., 09.07.2015, 17:24:

You might think it's far too short. But, this is actually the standard abbreviation used for GNU's gettext, so it seemed fitting.

— Reply to this email directly or view it on GitHub https://github.com/Medo42/Gang-Garrison-2/pull/283#issuecomment-120032667 .

Medo42 avatar Jul 09 '15 15:07 Medo42

https://en.wikipedia.org/wiki/Gettext

http://php.net/_

hikari-no-yume avatar Jul 09 '15 15:07 hikari-no-yume

A problem with using IETF language tags ("en", "de-DE" etc.) is we'd have to map them to names somehow. The only practical way I can see would be to parse every .lang file we can see, but then if one of them is malformed, trying to switch language will crash GG2 (parse error).

A better idea is probably just to have a free-form language name, and encourage native-language naming. So "British English.lang", "Deutsch.lang", "nihongo.lang", "español.lang", "hangug-eo.lang", etc. That's user-friendly and means we don't have to look at file contents to list files.

hikari-no-yume avatar Jul 10 '15 22:07 hikari-no-yume

Actually I probably won't finish this for a while, but it's a start

hikari-no-yume avatar Jul 23 '15 18:07 hikari-no-yume