tools/update_lua_locale_files.sh
changeset 13511 b62b14aa88d4
parent 13090 3f3ad415d849
equal deleted inserted replaced
13510:60bcc20e6ab0 13511:b62b14aa88d4
     3 # It's Clunky and slow!
     3 # It's Clunky and slow!
     4 # Note this script may sooner or later be phased out when we move to Gettext.
     4 # Note this script may sooner or later be phased out when we move to Gettext.
     5 
     5 
     6 # HOW TO USE:
     6 # HOW TO USE:
     7 # - Run this script in the tools/ directory.
     7 # - Run this script in the tools/ directory.
     8 # - All .lua files in share/hedgewars/Data/Locale will be updated.
     8 # - (Optional) Change LOCALEFILES below to limit the number of locale files to update
     9 # - Change LOCALEFILES below to limit the number of locale files to update
     9 # Result: All .lua files in share/hedgewars/Data/Locale will be updated.
    10 
    10 
       
    11 # SETTINGS:
    11 # Space-separated list of locale files to update, or *.lua for all.
    12 # Space-separated list of locale files to update, or *.lua for all.
    12 # (Note: always include stub.lua)
    13 # (Note: always include stub.lua)
    13 LOCALEFILES="*.lua"
    14 LOCALEFILES="*.lua"
       
    15 
       
    16 # END OF SETTINGS
    14 
    17 
    15 # List of all Lua files to scan:
    18 # List of all Lua files to scan:
    16 # * Missions
    19 # * Missions
    17 # * Campaign missions
    20 # * Campaign missions
    18 # * Lua libraries
    21 # * Lua libraries