Skip to content

Commit

Permalink
Re-generated translations for I/O port names.
Browse files Browse the repository at this point in the history
Trying to collect messages from everything at once hits some limit in
xgettext and causes messages to be lost no, so I've split it up by the
second-level source directories.

For some reason xgettext thinks overloaded Lua functions are blasphemy,
so that has to be worked around, too.
  • Loading branch information
cuavas committed Oct 11, 2021
1 parent b653a00 commit 751c280
Show file tree
Hide file tree
Showing 55 changed files with 266,639 additions and 90,514 deletions.
6,831 changes: 5,107 additions & 1,724 deletions language/Afrikaans/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Albanian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Arabic/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Basque/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Belarusian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Bosnian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Bulgarian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Burmese/strings.po

Large diffs are not rendered by default.

6,218 changes: 4,804 additions & 1,414 deletions language/Catalan/strings.po

Large diffs are not rendered by default.

8,255 changes: 5,824 additions & 2,431 deletions language/Chinese_Simplified/strings.po

Large diffs are not rendered by default.

8,265 changes: 5,829 additions & 2,436 deletions language/Chinese_Traditional/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Croatian/strings.po

Large diffs are not rendered by default.

5,338 changes: 4,364 additions & 974 deletions language/Czech/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Danish/strings.po

Large diffs are not rendered by default.

8,067 changes: 5,727 additions & 2,340 deletions language/Dutch/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/English/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Estonian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Finnish/strings.po

Large diffs are not rendered by default.

5,344 changes: 4,367 additions & 977 deletions language/French/strings.po

Large diffs are not rendered by default.

5,358 changes: 4,374 additions & 984 deletions language/French_Belgium/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/French_Canada/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Georgian/strings.po

Large diffs are not rendered by default.

8,041 changes: 5,718 additions & 2,323 deletions language/German/strings.po

Large diffs are not rendered by default.

8,210 changes: 5,804 additions & 2,406 deletions language/Greek/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Hebrew/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Hindi/strings.po

Large diffs are not rendered by default.

5,336 changes: 4,363 additions & 973 deletions language/Hungarian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Indonesian/strings.po

Large diffs are not rendered by default.

5,344 changes: 4,367 additions & 977 deletions language/Italian/strings.po

Large diffs are not rendered by default.

8,023 changes: 5,705 additions & 2,318 deletions language/Japanese/strings.po

Large diffs are not rendered by default.

8,042 changes: 5,720 additions & 2,322 deletions language/Korean/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Latvian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Lithuanian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Macedonian/strings.po

Large diffs are not rendered by default.

8,048 changes: 5,723 additions & 2,325 deletions language/Norwegian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Persian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Polish/strings.po

Large diffs are not rendered by default.

7,940 changes: 5,665 additions & 2,275 deletions language/Portuguese/strings.po

Large diffs are not rendered by default.

8,200 changes: 5,795 additions & 2,405 deletions language/Portuguese_Brazil/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Romanian/strings.po

Large diffs are not rendered by default.

7,920 changes: 5,655 additions & 2,265 deletions language/Russian/strings.po

Large diffs are not rendered by default.

5,338 changes: 4,364 additions & 974 deletions language/Serbian/strings.po

Large diffs are not rendered by default.

5,338 changes: 4,364 additions & 974 deletions language/Serbian_Cyrillic/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Slovak/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Slovenian/strings.po

Large diffs are not rendered by default.

8,035 changes: 5,714 additions & 2,321 deletions language/Spanish/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Spanish_Mexico/strings.po

Large diffs are not rendered by default.

5,349 changes: 4,375 additions & 974 deletions language/Swedish/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Thai/strings.po

Large diffs are not rendered by default.

6,191 changes: 4,790 additions & 1,401 deletions language/Turkish/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Ukrainian/strings.po

Large diffs are not rendered by default.

6,831 changes: 5,107 additions & 1,724 deletions language/Vietnamese/strings.po

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1915,10 +1915,22 @@ shaders: bgfx-tools

$(GENDIR)/mame.pot: FORCE
$(SILENT) echo Generating mame.pot
$(SILENT) find src "(" -name "*.cpp" -o -name "*.ipp" ")" -print0 | xargs -0 \
$(SILENT) find src/devices "(" -name "*.cpp" -o -name "*.ipp" ")" -print0 | xargs -0 \
xgettext -o $@ --from-code=UTF-8 --language=C++ -k_:1,1t -k_:1c,2,2t -kN_ -kN_p:1c,2
$(SILENT) find src/emu "(" -name "*.cpp" -o -name "*.ipp" ")" -print0 | xargs -0 \
xgettext -o $@ --from-code=UTF-8 --language=C++ -k_:1,1t -k_:1c,2,2t -kN_ -kN_p:1c,2 -j
$(SILENT) find src/frontend "(" -name "*.cpp" -o -name "*.ipp" ")" -print0 | xargs -0 \
xgettext -o $@ --from-code=UTF-8 --language=C++ -k_:1,1t -k_:1c,2,2t -kN_ -kN_p:1c,2 -j
$(SILENT) find src/lib "(" -name "*.cpp" -o -name "*.ipp" ")" -print0 | xargs -0 \
xgettext -o $@ --from-code=UTF-8 --language=C++ -k_:1,1t -k_:1c,2,2t -kN_ -kN_p:1c,2 -j
$(SILENT) find src/mame "(" -name "*.cpp" -o -name "*.ipp" ")" -print0 | xargs -0 \
xgettext -o $@ --from-code=UTF-8 --language=C++ -k_:1,1t -k_:1c,2,2t -kN_ -kN_p:1c,2 -j
$(SILENT) find src/osd "(" -name "*.cpp" -o -name "*.ipp" ")" -print0 | xargs -0 \
xgettext -o $@ --from-code=UTF-8 --language=C++ -k_:1,1t -k_:1c,2,2t -kN_ -kN_p:1c,2 -j
$(SILENT) find src/tools "(" -name "*.cpp" -o -name "*.ipp" ")" -print0 | xargs -0 \
xgettext -o $@ --from-code=UTF-8 --language=C++ -k_:1,1t -k_:1c,2,2t -kN_ -kN_p:1c,2 -j
$(SILENT) find plugins -name "*.lua" -print0 | xargs -0 \
xgettext -o $@ --from-code=UTF-8 --language=Lua -k_:1,1t -k_:1c,2,2t -kN_ -kN_p:1c,2 -j
xgettext -o $@ --from-code=UTF-8 --language=Lua -k_:1 -k_p:1c,2 -kN_ -kN_p:1c,2 -j

translation: $(GENDIR)/mame.pot
$(SILENT) find language -name "*.po" -print0 | xargs -0 -n 1 -I %% msgmerge -U -N %% $<
Expand Down
6 changes: 3 additions & 3 deletions plugins/autofire/autofire_menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ local function populate_main_menu(buttons)
local rate = 60 / (button.on_frames + button.off_frames)
-- Round to two decimal places
rate = math.floor(rate * 100) / 100
local text = string.format(_('%s [%d Hz]'), _("input-name", button.button.name), rate)
local text = string.format(_('%s [%d Hz]'), _p("input-name", button.button.name), rate)
local subtext = input:seq_name(button.key)
menu[#menu + 1] = {text, subtext, ''}
end
Expand Down Expand Up @@ -100,7 +100,7 @@ end
-- Add/edit menus (mostly identical)

local function populate_configure_menu(menu)
local button_name = current_button.button and _("input-name", current_button.button.name) or _('NOT SET')
local button_name = current_button.button and _p("input-name", current_button.button.name) or _('NOT SET')
local key_name = current_button.key and manager.machine.input:seq_name(current_button.key) or _('NOT SET')
menu[#menu + 1] = {_('Input'), button_name, ''}
menu[#menu + 1] = {_('Hotkey'), key_name, ''}
Expand Down Expand Up @@ -249,7 +249,7 @@ local function populate_button_menu()
for port_key, port in pairs(manager.machine.ioport.ports) do
for field_key, field in pairs(port.fields) do
if is_supported_input(field) then
menu[#menu + 1] = { _("input-name", field.name), '', '' }
menu[#menu + 1] = { _p("input-name", field.name), '', '' }
inputs[#inputs + 1] = {
port_name = port_key,
field_name = field_key,
Expand Down
1 change: 1 addition & 0 deletions plugins/boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require('lfs')

_G._ = emu.lang_translate
_G._p = emu.lang_translate
_G.N_ = function (message) return message end
_G.N_p = function (context, message) return message end
_G.emu.plugin = {} -- table to contain plugin interfaces
Expand Down

0 comments on commit 751c280

Please sign in to comment.