Skip to content

Commit

Permalink
Fixed French and German Locales and fixed font when editing locales
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsj02 committed May 29, 2024
1 parent 6b6af5d commit f844477
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,12 @@ constants.LANG_TO_FONT = {
["zhTW"] = "zhTW",
}


for lang, langInfo in pairs(Private.Locales) do
if langInfo.isEditing then
constants.LOCALE = lang
end
end
for fontName, fontPath in pairs(constants.MEDIA.FONTS) do
local langPath = constants.LANG_TO_FONT[constants.LOCALE]
constants.MEDIA.FONTS[fontName] = [[Interface\Addons\]] ..
Expand Down
10 changes: 5 additions & 5 deletions Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ Private.Locales["deDE"] = {
["Search Gems"] = "Suche Edelstein",
["Unowned"] = "Unbekannt",
["Show Unowned Gems in the List."] = "Unbekannte Edelsteine anzeigen.",
["All"] = "All",
["Meta"] = "Meta",
["Cogwheel"] = "Cogwheel",
["Tinker"] = "Tinker",
["Prismatic"] = "Prismatic",
["All"] = "Alle",
["Meta"] = "Metaedelstein",
["Cogwheel"] = "Zahnradedelstein",
["Tinker"] = "Tüftleredelstein",
["Prismatic"] = "Prismatisch",
["Primordial"] = "Urzeitlich",
["Show Primordial Gems in the List."] = "Urzeitliche Steine anzeigen.",
["Open, Use and Combine"] = "Öffnen, Benutzen und Kombinieren",
Expand Down
10 changes: 10 additions & 0 deletions Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ local Private = select(2, ...)
Private.Locales = Private.Locales or {}

Private.Locales["frFR"] = {
--isEditing = true,

-- addon title
["Remix Gem Helper"] = "Remix Gem Helper",

-- ItemTooltips.lua
["Rank"] = "Rang",
["Upgradeable"] = "Améliorable",
Expand All @@ -20,6 +25,11 @@ Private.Locales["frFR"] = {
["Search Gems"] = "Chercher des gemmes",
["Unowned"] = "Non possédé",
["Show Unowned Gems in the List."] = "Afficher les gemmes non possédées dans la liste.",
["All"] = "All",
["Meta"] = "Méta-gemme",
["Cogwheel"] = "Roue dentée précieuse",
["Tinker"] = "Gemme de bricolage",
["Prismatic"] = "Gemme prismatique",
["Primordial"] = "Primordial",
["Show Primordial Gems in the List."] = "Afficher les gemmes primordiales dans la liste.",
["Open, Use and Combine"] = "Ouvrir, utiliser et combiner",
Expand Down

0 comments on commit f844477

Please sign in to comment.