Drop support for the l10n-track file (#4722)
The file only had a run-time effect if it listed any files as "fuzzy", which it hasn't since the last change in 2015. However, that isn't a reason for removing it. The reason for removing it is that it doesn't make sense to automatically mark images as fuzzy when an image changes, because fuzzy is often much better than untranslated. This is different to the logic for strings, where a single word can negate the meaning of a sentence. The decision has to be a manual process, and at that point it might as well be done with the source-control tool's delete-file function. Even considering the previous times that l10n-track was used, I can't see a scenario where it would be useful. * Scenario: a screenshot needs to be replaced. In this case the new images are going to be screenshots too. If the old images are out of date, better to just delete them instead of needing the fuzzy mechanism; either option would have the same effect of showing the up-to-date-but-untranslated image. * Scenario: a map is completely redrawn. This seems unlikely, as a completely redrawn image could be added as a new map rather than replacing the old one. Even if it does happen, it's probably best to just delete the old --overlay.png files. * Scenario: a new landmark is added to a map. Using the existing overlay file is still going to be good, as it means the rest of the map is shown translated. There's surely new dialogue in the WML files commenting on this new landmark, which would be a good place to say # po: Lorem's Ipsum was added to the map on 24 Jan 2020, please add a label to your language's --overlay file. * Scenario: an old feature is removed from the map. Using the existing overlay will have an out-of-date label, and the significance of that would depend on how it affects the storyline. This could be significant enough to make showing the English labels be a better option than showing the translated ones. However, the translated maps could be updated without knowledge of the language, so if it's such a significant change then the developer writing the new WML should probably do that. * Scenario: a feature moves slightly on the map. This is an example where the l10n-track file has been used, it happened with the Bitter Swamp on the bottom-right corner of the title screen. I think it would have been better to show the slightly-out-of-date overlay instead of showing the English. Note about cherry-picking: in the 1.14 branch, the change needs to be applied to src/picture.cpp instead of src/filesystem.cpp.
This commit is contained in:
parent
711b9388e9
commit
c9511d7ba0
6 changed files with 1 additions and 302 deletions
|
@ -624,11 +624,6 @@ if(ENABLE_SERVER AND FIFO_DIR)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
# Index for checking states of localized images at runtime.
|
||||
if(ENABLE_GAME)
|
||||
install(FILES l10n-track DESTINATION ${CMAKE_INSTALL_DATADIR}/${DATADIRNAME})
|
||||
endif(ENABLE_GAME)
|
||||
|
||||
#
|
||||
# uninstall
|
||||
#
|
||||
|
|
|
@ -746,7 +746,6 @@ env.InstallData("datadir", "wesnoth", [Dir(sub) for sub in installable_subs])
|
|||
env.InstallData("docdir", "wesnoth", [Glob("doc/manual/*.html"), Dir("doc/manual/styles"), Dir("doc/manual/images")])
|
||||
if env["nls"]:
|
||||
env.InstallData("localedir", "wesnoth", Dir("translations"), copy_filter = MoFileFilter)
|
||||
env.InstallData("datadir", "wesnoth", "l10n-track")
|
||||
InstallManpages(env, "wesnoth")
|
||||
if have_client_prereqs and have_X and env["desktop_entry"]:
|
||||
env.InstallData("icondir", "wesnoth", "packaging/icons")
|
||||
|
|
11
l10n-spec
11
l10n-spec
|
@ -1,11 +0,0 @@
|
|||
# List of language codes that have at least one localized file.
|
||||
languages = af ang ang@latin bg ca cs da de el en en@shaw eo es et eu fi fr ga gd gl he hr hu id is it la lt lv mk mr nl pl pt ru sk sr sr@ijekavian sr@ijekavianlatin sr@latin tr vi zh_CN zh_TW
|
||||
|
||||
# We're currently using git
|
||||
source-vcs = git
|
||||
|
||||
# Ignore overlay marker in localized filenames when matching with original.
|
||||
ignore-substr = --overlay
|
||||
|
||||
# Tight grouping of lines in track file (not many images expected).
|
||||
tight-track-file = 1
|
235
l10n-track
235
l10n-track
|
@ -1,235 +0,0 @@
|
|||
# Do not edit manually, except to remove complete lines.
|
||||
|
||||
# af
|
||||
ok ¦images/misc/l10n/af/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# ang
|
||||
ok ¦images/misc/l10n/ang/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# ang@latin
|
||||
ok ¦images/misc/l10n/ang@latin/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# bg
|
||||
ok ¦images/misc/l10n/bg/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# ca
|
||||
ok ¦images/misc/l10n/ca/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# cs
|
||||
ok ¦data/core/images/help/l10n/cs/hpxp.png¦ 62a5f259d2d924792e594bf3445020c7 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/cs/recruit.png¦ 71f948f0d3c00d80291a98d7606f142d d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/cs/tooltip.png¦ f712aa35b556f227e7bd2383bca814bf d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/cs/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# da
|
||||
ok ¦images/misc/l10n/da/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# de
|
||||
ok ¦data/campaigns/An_Orcish_Incursion/images/maps/l10n/de/aoi--overlay.png¦ 566caef8841ce7ea42b49e436230f6bb a3b14e767064ba27b97a9a316da9301d88e64b0
|
||||
ok ¦data/campaigns/Dead_Water/images/maps/l10n/de/dw--overlay.png¦ b652fd1277d6a947fb667537e0f934aa 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/Descent_Into_Darkness/images/maps/l10n/de/did--overlay.png¦ 6b31cd94d40c8b0d02bb5e008af0bf84 a3b14e767064ba27b97a9a316da9301d88e64b0
|
||||
ok ¦data/campaigns/Eastern_Invasion/images/maps/l10n/de/ei--overlay.png¦ 9ce99e39e9a54b28019e399879762885 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/Heir_To_The_Throne/images/maps/l10n/de/httt--overlay.png¦ c6a61abdc02a22a1279d6e86d2d988d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Legend_of_Wesmere/images/l10n/de/low-map--overlay.png¦ 82d520be1d9d733cd9d6e06e2e187029 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/Liberty/images/maps/l10n/de/liberty--overlay.png¦ f95afb953e44122ded647dcb4d414aa5 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/Northern_Rebirth/images/maps/l10n/de/nr--overlay.png¦ 566caef8841ce7ea42b49e436230f6bb a694169330b8e601034e48608bbf83b4e77626a
|
||||
ok ¦data/campaigns/Sceptre_of_Fire/images/maps/l10n/de/sof--overlay.png¦ 8e6a191c8caec86b05feaf5a13f9c10e bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Son_Of_The_Black_Eye/images/maps/l10n/de/sotbe--overlay.png¦ 99c228c3a38a107030c0f46817835adb bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/The_Hammer_of_Thursagan/images/maps/l10n/de/thot--overlay.png¦ 8e6a191c8caec86b05feaf5a13f9c10e 1112187b7d990eff944bf979bca4a62c9a85f13
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/maps/l10n/de/green_isle--overlay.png¦ 3e0318d30f3a56481c93d236da9ded97 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/The_South_Guard/images/maps/l10n/de/tsg--overlay.png¦ b6794ada1484eef485bbede267d8f1d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Two_Brothers/images/maps/l10n/de/tb--overlay.png¦ f95afb953e44122ded647dcb4d414aa5 fd99e0f0c5c6139d98659fe9fc60f763b953048
|
||||
ok ¦data/core/images/help/l10n/de/hpxp.png¦ 62a5f259d2d924792e594bf3445020c7 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/de/recruit.png¦ 71f948f0d3c00d80291a98d7606f142d d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/de/tooltip.png¦ f712aa35b556f227e7bd2383bca814bf d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/maps/l10n/de/titlescreen--overlay.png¦ c6a61abdc02a22a1279d6e86d2d988d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/core/images/maps/l10n/de/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
|
||||
# el
|
||||
ok ¦images/misc/l10n/el/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# en
|
||||
ok ¦images/misc/l10n/en/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# en@shaw
|
||||
ok ¦images/misc/l10n/en@shaw/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# eo
|
||||
ok ¦images/misc/l10n/eo/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# es
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/story/l10n/es/trow-logo.png¦ 591ed63c8eac31ea6549848dbed29143 0d5aa46e7435d9c5bf2944bb447c9ac6b2f1c0a
|
||||
ok ¦data/core/images/help/l10n/es/hpxp.png¦ 62a5f259d2d924792e594bf3445020c7 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/es/recruit.png¦ 71f948f0d3c00d80291a98d7606f142d d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/es/tooltip.png¦ f712aa35b556f227e7bd2383bca814bf d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/maps/l10n/es/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/es/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# et
|
||||
ok ¦images/misc/l10n/et/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# eu
|
||||
ok ¦images/misc/l10n/eu/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# fi
|
||||
ok ¦images/misc/l10n/fi/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# fr
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/story/l10n/fr/trow-logo.png¦ 591ed63c8eac31ea6549848dbed29143 0d5aa46e7435d9c5bf2944bb447c9ac6b2f1c0a
|
||||
ok ¦data/core/images/help/l10n/fr/hpxp.png¦ 62a5f259d2d924792e594bf3445020c7 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/fr/recruit.png¦ 71f948f0d3c00d80291a98d7606f142d d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/fr/tooltip.png¦ f712aa35b556f227e7bd2383bca814bf d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/maps/l10n/fr/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/fr/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# ga
|
||||
ok ¦images/misc/l10n/ga/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# gd
|
||||
ok ¦data/campaigns/An_Orcish_Incursion/images/maps/l10n/gd/aoi--overlay.png¦ 566caef8841ce7ea42b49e436230f6bb a3b14e767064ba27b97a9a316da9301d88e64b0
|
||||
ok ¦data/campaigns/Heir_To_The_Throne/images/maps/l10n/gd/httt--overlay.png¦ c6a61abdc02a22a1279d6e86d2d988d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Northern_Rebirth/images/maps/l10n/gd/nr--overlay.png¦ 566caef8841ce7ea42b49e436230f6bb a694169330b8e601034e48608bbf83b4e77626a
|
||||
ok ¦data/campaigns/The_South_Guard/images/maps/l10n/gd/tsg--overlay.png¦ b6794ada1484eef485bbede267d8f1d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/core/images/maps/l10n/gd/titlescreen--overlay.png¦ c6a61abdc02a22a1279d6e86d2d988d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/core/images/maps/l10n/gd/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/gd/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# gl
|
||||
ok ¦data/campaigns/An_Orcish_Incursion/images/maps/l10n/gl/aoi--overlay.png¦ 566caef8841ce7ea42b49e436230f6bb a3b14e767064ba27b97a9a316da9301d88e64b0
|
||||
ok ¦data/campaigns/Dead_Water/images/maps/l10n/gl/dw--overlay.png¦ b652fd1277d6a947fb667537e0f934aa 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/Descent_Into_Darkness/images/maps/l10n/gl/did--overlay.png¦ 6b31cd94d40c8b0d02bb5e008af0bf84 a3b14e767064ba27b97a9a316da9301d88e64b0
|
||||
ok ¦data/campaigns/Heir_To_The_Throne/images/maps/l10n/gl/httt--overlay.png¦ c6a61abdc02a22a1279d6e86d2d988d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Liberty/images/maps/l10n/gl/liberty--overlay.png¦ f95afb953e44122ded647dcb4d414aa5 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/Northern_Rebirth/images/maps/l10n/gl/nr--overlay.png¦ 566caef8841ce7ea42b49e436230f6bb a694169330b8e601034e48608bbf83b4e77626a
|
||||
ok ¦data/campaigns/Sceptre_of_Fire/images/maps/l10n/gl/sof--overlay.png¦ 8e6a191c8caec86b05feaf5a13f9c10e bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Son_Of_The_Black_Eye/images/maps/l10n/gl/sotbe--overlay.png¦ 99c228c3a38a107030c0f46817835adb bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/The_Hammer_of_Thursagan/images/maps/l10n/gl/thot--overlay.png¦ 8e6a191c8caec86b05feaf5a13f9c10e 1112187b7d990eff944bf979bca4a62c9a85f13
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/story/l10n/gl/trow-logo.png¦ 591ed63c8eac31ea6549848dbed29143 0d5aa46e7435d9c5bf2944bb447c9ac6b2f1c0a
|
||||
ok ¦data/campaigns/The_South_Guard/images/maps/l10n/gl/tsg--overlay.png¦ b6794ada1484eef485bbede267d8f1d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Two_Brothers/images/maps/l10n/gl/tb--overlay.png¦ f95afb953e44122ded647dcb4d414aa5 fd99e0f0c5c6139d98659fe9fc60f763b953048
|
||||
ok ¦data/core/images/help/l10n/gl/hpxp.png¦ 62a5f259d2d924792e594bf3445020c7 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/gl/recruit.png¦ 71f948f0d3c00d80291a98d7606f142d d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/gl/tooltip.png¦ f712aa35b556f227e7bd2383bca814bf d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/maps/l10n/gl/titlescreen--overlay.png¦ c6a61abdc02a22a1279d6e86d2d988d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦images/misc/l10n/gl/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# he
|
||||
ok ¦images/misc/l10n/he/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# hr
|
||||
ok ¦images/misc/l10n/hr/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# hu
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/story/l10n/hu/trow-logo.png¦ 591ed63c8eac31ea6549848dbed29143 0d5aa46e7435d9c5bf2944bb447c9ac6b2f1c0a
|
||||
ok ¦data/core/images/maps/l10n/hu/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/hu/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# id
|
||||
ok ¦images/misc/l10n/id/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# is
|
||||
ok ¦images/misc/l10n/is/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# it
|
||||
ok ¦data/core/images/help/l10n/it/hpxp.png¦ 62a5f259d2d924792e594bf3445020c7 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/it/recruit.png¦ 71f948f0d3c00d80291a98d7606f142d d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/it/tooltip.png¦ f712aa35b556f227e7bd2383bca814bf d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/maps/l10n/it/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/it/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# la
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/story/l10n/la/trow-logo.png¦ 591ed63c8eac31ea6549848dbed29143 0d5aa46e7435d9c5bf2944bb447c9ac6b2f1c0a
|
||||
ok ¦data/core/images/maps/l10n/la/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/la/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# lt
|
||||
ok ¦data/campaigns/An_Orcish_Incursion/images/maps/l10n/lt/aoi--overlay.png¦ 566caef8841ce7ea42b49e436230f6bb a3b14e767064ba27b97a9a316da9301d88e64b0
|
||||
ok ¦data/campaigns/Descent_Into_Darkness/images/maps/l10n/lt/did--overlay.png¦ 6b31cd94d40c8b0d02bb5e008af0bf84 a3b14e767064ba27b97a9a316da9301d88e64b0
|
||||
ok ¦data/campaigns/Heir_To_The_Throne/images/maps/l10n/lt/httt--overlay.png¦ c6a61abdc02a22a1279d6e86d2d988d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Northern_Rebirth/images/maps/l10n/lt/nr--overlay.png¦ 566caef8841ce7ea42b49e436230f6bb a694169330b8e601034e48608bbf83b4e77626a
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/story/l10n/lt/trow-logo.png¦ 591ed63c8eac31ea6549848dbed29143 0d5aa46e7435d9c5bf2944bb447c9ac6b2f1c0a
|
||||
ok ¦data/campaigns/The_South_Guard/images/maps/l10n/lt/tsg--overlay.png¦ b6794ada1484eef485bbede267d8f1d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/core/images/maps/l10n/lt/titlescreen--overlay.png¦ c6a61abdc02a22a1279d6e86d2d988d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦images/misc/l10n/lt/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# lv
|
||||
ok ¦images/misc/l10n/lv/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# mk
|
||||
ok ¦images/misc/l10n/mk/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# mr
|
||||
ok ¦images/misc/l10n/mr/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# nl
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/story/l10n/nl/trow-logo.png¦ 591ed63c8eac31ea6549848dbed29143 0d5aa46e7435d9c5bf2944bb447c9ac6b2f1c0a
|
||||
ok ¦images/misc/l10n/nl/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# pl
|
||||
ok ¦images/misc/l10n/pl/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# pt
|
||||
ok ¦data/campaigns/An_Orcish_Incursion/images/maps/l10n/pt/aoi--overlay.png¦ 566caef8841ce7ea42b49e436230f6bb a3b14e767064ba27b97a9a316da9301d88e64b0
|
||||
ok ¦data/campaigns/Dead_Water/images/maps/l10n/pt/dw--overlay.png¦ b652fd1277d6a947fb667537e0f934aa 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/Descent_Into_Darkness/images/maps/l10n/pt/did--overlay.png¦ 6b31cd94d40c8b0d02bb5e008af0bf84 a3b14e767064ba27b97a9a316da9301d88e64b0
|
||||
ok ¦data/campaigns/Eastern_Invasion/images/maps/l10n/pt/ei--overlay.png¦ 9ce99e39e9a54b28019e399879762885 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/Heir_To_The_Throne/images/maps/l10n/pt/httt--overlay.png¦ c6a61abdc02a22a1279d6e86d2d988d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Legend_of_Wesmere/images/l10n/pt/low-map--overlay.png¦ 82d520be1d9d733cd9d6e06e2e187029 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/Liberty/images/maps/l10n/pt/liberty--overlay.png¦ f95afb953e44122ded647dcb4d414aa5 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/Northern_Rebirth/images/maps/l10n/pt/nr--overlay.png¦ 566caef8841ce7ea42b49e436230f6bb a694169330b8e601034e48608bbf83b4e77626a
|
||||
ok ¦data/campaigns/Sceptre_of_Fire/images/maps/l10n/pt/sof--overlay.png¦ 8e6a191c8caec86b05feaf5a13f9c10e bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Son_Of_The_Black_Eye/images/maps/l10n/pt/sotbe--overlay.png¦ 99c228c3a38a107030c0f46817835adb bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/The_Hammer_of_Thursagan/images/maps/l10n/pt/thot--overlay.png¦ 8e6a191c8caec86b05feaf5a13f9c10e 1112187b7d990eff944bf979bca4a62c9a85f13
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/maps/l10n/pt/green_isle--overlay.png¦ 3e0318d30f3a56481c93d236da9ded97 3ca6988963d24be3f4f6cd8be2de2296df87919
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/story/l10n/pt/trow-logo.png¦ 591ed63c8eac31ea6549848dbed29143 0d5aa46e7435d9c5bf2944bb447c9ac6b2f1c0a
|
||||
ok ¦data/campaigns/The_South_Guard/images/maps/l10n/pt/tsg--overlay.png¦ b6794ada1484eef485bbede267d8f1d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/campaigns/Two_Brothers/images/maps/l10n/pt/tb--overlay.png¦ f95afb953e44122ded647dcb4d414aa5 fd99e0f0c5c6139d98659fe9fc60f763b953048
|
||||
ok ¦data/core/images/help/l10n/pt/hpxp.png¦ 62a5f259d2d924792e594bf3445020c7 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/pt/recruit.png¦ 71f948f0d3c00d80291a98d7606f142d d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/pt/tooltip.png¦ f712aa35b556f227e7bd2383bca814bf d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/maps/l10n/pt/titlescreen--overlay.png¦ c6a61abdc02a22a1279d6e86d2d988d0 bbace6d70c9021bea33fd06eb40ae5c793099d2
|
||||
ok ¦data/core/images/maps/l10n/pt/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/pt/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# ru
|
||||
ok ¦data/core/images/maps/l10n/ru/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/ru/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# sk
|
||||
ok ¦data/core/images/help/l10n/sk/hpxp.png¦ 62a5f259d2d924792e594bf3445020c7 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/sk/recruit.png¦ 71f948f0d3c00d80291a98d7606f142d d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/sk/tooltip.png¦ f712aa35b556f227e7bd2383bca814bf d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/sk/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# sr
|
||||
ok ¦data/core/images/lobby/l10n/sr/sort-az-off.png¦ 89ce53a0dbc82ada087de1f8b7bc3729 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/lobby/l10n/sr/sort-az.png¦ 959745325606642eb4e22b2356328641 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/maps/l10n/sr/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/sr/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# sr@ijekavian
|
||||
ok ¦data/core/images/maps/l10n/sr@ijekavian/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
|
||||
# sr@ijekavianlatin
|
||||
ok ¦data/core/images/maps/l10n/sr@ijekavianlatin/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
|
||||
# sr@latin
|
||||
ok ¦data/core/images/maps/l10n/sr@latin/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/sr@latin/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# tr
|
||||
ok ¦images/misc/l10n/tr/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# vi
|
||||
ok ¦data/campaigns/The_Rise_Of_Wesnoth/images/story/l10n/vi/trow-logo.png¦ 591ed63c8eac31ea6549848dbed29143 0d5aa46e7435d9c5bf2944bb447c9ac6b2f1c0a
|
||||
ok ¦data/core/images/help/l10n/vi/hpxp.png¦ 62a5f259d2d924792e594bf3445020c7 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/vi/recruit.png¦ 71f948f0d3c00d80291a98d7606f142d d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦data/core/images/help/l10n/vi/tooltip.png¦ f712aa35b556f227e7bd2383bca814bf d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/vi/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# zh_CN
|
||||
ok ¦data/core/images/maps/l10n/zh_CN/wesnoth--overlay.png¦ f03a2a4cc8cbb9fcaf48593289e3e5c4 d5fa4bc7b25ae115d23070c04970dec7f66baf3
|
||||
ok ¦images/misc/l10n/zh_CN/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
||||
|
||||
# zh_TW
|
||||
ok ¦images/misc/l10n/zh_TW/logo.png¦ f13ab03e31b1aaeec3036ebfe049e78f 6e0af4f77ed425d62ae06ce7157a5b37f67c8f7
|
|
@ -84,7 +84,6 @@
|
|||
464C03752283695A007D2741 /* libSDL2_ttf-2.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 464C0366228361B6007D2741 /* libSDL2_ttf-2.0.0.dylib */; };
|
||||
464C03762283695D007D2741 /* libSDL2_mixer-2.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 464C0368228361B7007D2741 /* libSDL2_mixer-2.0.0.dylib */; };
|
||||
464C037722836961007D2741 /* libSDL2_image-2.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 464C0362228361B5007D2741 /* libSDL2_image-2.0.0.dylib */; };
|
||||
465410A02078BC77002BCD13 /* l10n-track in Resources */ = {isa = PBXBuildFile; fileRef = 4654109E2078BC02002BCD13 /* l10n-track */; };
|
||||
4664B9441F462ED9009E4881 /* irdya_datetime.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46DF5BCC1F46173700BE6D24 /* irdya_datetime.cpp */; };
|
||||
46685C89219D518B0009CFFE /* preprocessor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46685C6E219D51870009CFFE /* preprocessor.cpp */; };
|
||||
46685C8A219D518B0009CFFE /* preprocessor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46685C6E219D51870009CFFE /* preprocessor.cpp */; };
|
||||
|
@ -1463,7 +1462,6 @@
|
|||
464C0367228361B6007D2741 /* libSDL2-2.0.0.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libSDL2-2.0.0.dylib"; path = "lib/libSDL2-2.0.0.dylib"; sourceTree = "<group>"; };
|
||||
464C0368228361B7007D2741 /* libSDL2_mixer-2.0.0.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libSDL2_mixer-2.0.0.dylib"; path = "lib/libSDL2_mixer-2.0.0.dylib"; sourceTree = "<group>"; };
|
||||
464C0369228361B7007D2741 /* libvorbisfile.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libvorbisfile.dylib; path = lib/libvorbisfile.dylib; sourceTree = "<group>"; };
|
||||
4654109E2078BC02002BCD13 /* l10n-track */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "l10n-track"; path = "../../l10n-track"; sourceTree = "<group>"; };
|
||||
46685C6B219D51870009CFFE /* utf8_exception.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = utf8_exception.hpp; sourceTree = "<group>"; };
|
||||
46685C6C219D51870009CFFE /* ucs4_iterator_base.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = ucs4_iterator_base.hpp; sourceTree = "<group>"; };
|
||||
46685C6D219D51870009CFFE /* validator.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = validator.hpp; sourceTree = "<group>"; };
|
||||
|
@ -3199,7 +3197,6 @@
|
|||
B5A9BE290ECE927C002BE442 /* icon.icns */,
|
||||
B5A9B0780ECA4074002BE442 /* images */,
|
||||
8D1107310486CEB800E47090 /* Info.plist */,
|
||||
4654109E2078BC02002BCD13 /* l10n-track */,
|
||||
B5BB6EFD0F93B83500444FBF /* SDLMain.nib */,
|
||||
B5A9B2140ECA4074002BE442 /* sounds */,
|
||||
46F302ED220327FE0028938F /* Wesnoth.entitlements */,
|
||||
|
@ -4889,7 +4886,6 @@
|
|||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
465410A02078BC77002BCD13 /* l10n-track in Resources */,
|
||||
46F302EE220327FE0028938F /* container-migration.plist in Resources */,
|
||||
B5A9B2290ECA4074002BE442 /* fonts in Resources */,
|
||||
B5A9BE2A0ECE927C002BE442 /* icon.icns in Resources */,
|
||||
|
|
|
@ -1594,51 +1594,6 @@ std::string sanitize_path(const std::string& path)
|
|||
return canonicalized;
|
||||
}
|
||||
|
||||
namespace {
|
||||
// Check if localized file is up-to-date according to l10n track index.
|
||||
// Make sure only that the image is not explicitly recorded as fuzzy,
|
||||
// in order to be able to use non-tracked images (e.g. from UMC).
|
||||
std::set<std::string> fuzzy_localized_files;
|
||||
bool localized_file_uptodate(const std::string& loc_file)
|
||||
{
|
||||
if(fuzzy_localized_files.empty()) {
|
||||
// First call, parse track index to collect fuzzy files by path.
|
||||
std::string fsep = "\xC2\xA6"; // UTF-8 for "broken bar"
|
||||
std::string trackpath = filesystem::get_binary_file_location("", "l10n-track");
|
||||
|
||||
// l10n-track file not present. Assume image is up-to-date.
|
||||
if(trackpath.empty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string contents = filesystem::read_file(trackpath);
|
||||
|
||||
for(const std::string& line : utils::split(contents, '\n')) {
|
||||
std::size_t p1 = line.find(fsep);
|
||||
if(p1 == std::string::npos) {
|
||||
continue;
|
||||
}
|
||||
|
||||
std::string state = line.substr(0, p1);
|
||||
boost::trim(state);
|
||||
if(state == "fuzzy") {
|
||||
std::size_t p2 = line.find(fsep, p1 + fsep.length());
|
||||
if(p2 == std::string::npos) {
|
||||
continue;
|
||||
}
|
||||
|
||||
std::string relpath = line.substr(p1 + fsep.length(), p2 - p1 - fsep.length());
|
||||
fuzzy_localized_files.insert(game_config::path + '/' + relpath);
|
||||
}
|
||||
}
|
||||
|
||||
fuzzy_localized_files.insert(""); // make sure not empty any more
|
||||
}
|
||||
|
||||
return fuzzy_localized_files.count(loc_file) == 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Return path to localized counterpart of the given file, if any, or empty string.
|
||||
// Localized counterpart may also be requested to have a suffix to base name.
|
||||
std::string get_localized_path(const std::string& file, const std::string& suff)
|
||||
|
@ -1673,7 +1628,7 @@ std::string get_localized_path(const std::string& file, const std::string& suff)
|
|||
langs.push_back("en_US");
|
||||
for(const std::string& lang : langs) {
|
||||
std::string loc_file = dir + "/" + "l10n" + "/" + lang + "/" + loc_base;
|
||||
if(filesystem::file_exists(loc_file) && localized_file_uptodate(loc_file)) {
|
||||
if(filesystem::file_exists(loc_file)) {
|
||||
return loc_file;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue