From 7eeb1f76c3b0be9c2220ee70b2f45394e1eadd4d Mon Sep 17 00:00:00 2001 From: Blipz Date: Tue, 24 Mar 2026 12:42:13 +0100 Subject: [PATCH] More translations --- i18next.config.ts | 2 +- public/locales/en/lang.json | 99 +++++++++++- public/locales/fr/lang.json | 147 +++++++++++++---- public/main.js | 2 +- public/modules/ui/options.js | 47 +----- src/index.html | 244 ++++++++++++++++------------- src/modules/locales.ts | 82 +++++----- src/modules/provinces-generator.ts | 11 +- src/modules/states-generator.ts | 2 +- src/types/global.ts | 1 + src/utils/languageUtils.ts | 6 +- 11 files changed, 407 insertions(+), 236 deletions(-) diff --git a/i18next.config.ts b/i18next.config.ts index db1674a1..23c3696e 100644 --- a/i18next.config.ts +++ b/i18next.config.ts @@ -6,7 +6,7 @@ const HTMLPlugin: Plugin = { name: "html-plugin", async onEnd(keys: Map) { const content = await readFile("src/index.html", "utf-8"); - const matches = content.matchAll(/data-(?:text|tip)="([^"]+)"/g); + const matches = content.matchAll(/data-(?:html|text|tip)="([^"]+)"/g); for (const match of matches) { const key = match[1]; keys.set(key, {key, defaultValue: key}); diff --git a/public/locales/en/lang.json b/public/locales/en/lang.json index c772857b..4350334a 100644 --- a/public/locales/en/lang.json +++ b/public/locales/en/lang.json @@ -1,8 +1,24 @@ { "{{adjective}} {{noun}}": "{{adjective}} {{noun}}", "{{noun}} of {{complement}}": "{{noun}} of {{complement}}", + "{{provinceName}} {{provinceForm}}": "{{provinceName}} {{provinceForm}}", + "Biomes": "Biomes", + "Cultures": "Cultures", + "Grid": "Grid", + "Heightmap": "Heightmap", + "Icons": "Icons", + "Labels": "Labels", + "Military": "Military", + "Provinces": "Provinces", + "Religions": "Religions", + "States": "States", + "Temperature": "Temperature", + "Wind Rose": "Wind Rose", + "Zones": "Zones", + "3D scene": "3D scene", "About": "About", "Activate/deactivate group": "Activate/deactivate group", + "Add": "Add", "Add a custom biome": "Add a custom biome", "Add a font": "Add a font", "Add a new burg. Hold Shift to add multiple": "Add a new burg. Hold Shift to add multiple", @@ -28,6 +44,7 @@ "Ambush: surprise attack": "Ambush: surprise attack", "Analyze namesbase to get a validity and quality overview": "Analyze namesbase to get a validity and quality overview", "Anchor Icons": "Anchor Icons", + "Antique": "Antique", "Antique big": "Antique big", "Antique small": "Antique small", "Apply a filter": "Apply a filter", @@ -46,6 +63,7 @@ "Auto-assign colors using generator scheme (for exported colored heightmaps)": "Auto-assign colors using generator scheme (for exported colored heightmaps)", "Automatically add river starting from clicked cell. Hold Shift to add multiple": "Automatically add river starting from clicked cell. Hold Shift to add multiple", "Autonomy": "Autonomy", + "Autosave interval": "Autosave interval", "Average area": "Average area", "Average discharge": "Average discharge", "Average forces rate per state": "Average forces rate per state", @@ -55,6 +73,7 @@ "Average number of people in crew (used for total personnel calculation)": "Average number of people in crew (used for total personnel calculation)", "Average population": "Average population", "Average War Alert": "Average War Alert", + "Azgaar assistant": "Azgaar assistant", "Banner": "Banner", "Barony": "Barony", "Baroque": "Baroque", @@ -70,11 +89,15 @@ "Blobs to add, use hyphen to get a random number in range": "Blobs to add, use hyphen to get a random number in range", "Blockade phase. Prepare or hold the blockade": "Blockade phase. Prepare or hold the blockade", "Boarding phase. Melee units go aboard": "Boarding phase. Melee units go aboard", + "Body filter": "Body filter", + "Body opacity": "Body opacity", "Boeotian": "Boeotian", "Bombardment phase. Attack enemy with machinery units": "Bombardment phase. Attack enemy with machinery units", + "Borders": "Borders", "Borders": "Borders", "Brotherhood": "Brotherhood", "Bubble": "Bubble", + "Burg": "Burg", "Burg average yearly temperature": "Burg average yearly temperature", "Burg emblem. Click to edit": "Burg emblem. Click to edit", "Burg height above mean sea level": "Burg height above mean sea level", @@ -82,8 +105,12 @@ "Burg icons: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Burg icons: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", "Burg map preview": "Burg map preview", "Burg preview generator": "Burg preview generator", + "Burgs": "Burgs", "Burgs displayed": "Burgs displayed", + "Burgs number": "Burgs number", "Butt": "Butt", + "Cells": "Cells", + "Coordinates": "Coordinates", "Calculated size of image if combined": "Calculated size of image if combined", "Caliphate": "Caliphate", "Cancel assignment": "Cancel assignment", @@ -91,6 +118,7 @@ "Cancel the conversion. Previous heightmap will be restored": "Cancel the conversion. Previous heightmap will be restored", "Cancel the creation": "Cancel the creation", "Canton": "Canton", + "Canvas size": "Canvas size", "Canvas size. Can be changed in general options on new map generation": "Canvas size. Can be changed in general options on new map generation", "Captaincy": "Captaincy", "Cells": "Cells", @@ -101,6 +129,7 @@ "Change height for all cells": "Change height for all cells", "Change Iceberg size": "Change Iceberg size", "Change tool power. Shortcut: + to increase; – to decrease": "Change tool power. Shortcut: + to increase; – to decrease", + "Charts": "Charts", "Check if unit is separate and can be stacked only with units of the same type": "Check if unit is separate and can be stacked only with units of the same type", "Check to fit burg styles (icon and label size) to the submap scale": "Check to fit burg styles (icon and label size) to the submap scale", "Check to not allow system to automatically hide labels": "Check to not allow system to automatically hide labels", @@ -236,6 +265,7 @@ "Confederation": "Confederation", "Config markers generation options": "Config markers generation options", "Configure burg groups": "Configure burg groups", + "Configure World": "Configure World", "Configure world and map size and climate settings": "Configure world and map size and climate settings", "Conglomerate": "Conglomerate", "Connect your Dropbox account to be able to load maps from it": "Connect your Dropbox account to be able to load maps from it", @@ -249,6 +279,7 @@ "Copy selected relief icon": "Copy selected relief icon", "Council": "Council", "County": "County", + "Create": "Create", "Create a new group for this coastline": "Create a new group for this coastline", "Create a new group for this label": "Create a new group for this label", "Create a new regiment or fleet": "Create a new regiment or fleet", @@ -261,11 +292,14 @@ "Culture-random": "Culture-random", "Culture-specific": "Culture-specific", "Cultures": "Cultures", + "Cultures number": "Cultures number", + "Cultures set": "Cultures set", "Cultures: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Cultures: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", "Curved": "Curved", "Custom": "Custom", "Custom (not saved)": "Custom (not saved)", "Custom name": "Custom name", + "Dark Fantasy": "Dark Fantasy", "Dawn": "Dawn", "Deanery": "Deanery", "Defenders morale: ": "Defenders morale: ", @@ -286,6 +320,7 @@ "Define the size of relief icons. All relief icons will be regenerated": "Define the size of relief icons. All relief icons will be regenerated", "Define transparency of fill color": "Define transparency of fill color", "Define transparency of temperature leyer. Set to 0 to make it fully transparent": "Define transparency of temperature leyer. Set to 0 to make it fully transparent", + "degree Celsius (°C)": "degree Celsius (°C)", "degree Delisle (°De)": "degree Delisle (°De)", "degree Fahrenheit (°F)": "degree Fahrenheit (°F)", "degree Newton (°N)": "degree Newton (°N)", @@ -302,6 +337,7 @@ "Diamond": "Diamond", "Diarchy": "Diarchy", "Diocese": "Diocese", + "Diplomacy": "Diplomacy", "Display brushes panel": "Display brushes panel", "Displayed layers and layers order:": "Displayed layers and layers order:", "Disrupt (randomize) heights a bit": "Disrupt (randomize) heights a bit", @@ -349,6 +385,7 @@ "Duchy": "Duchy", "Earldom": "Earldom", "Easterling": "Easterling", + "Edit": "Edit", "Edit biomes style in Style Editor": "Edit biomes style in Style Editor", "Edit burg groups": "Edit burg groups", "Edit coastline group style in Style Editor": "Edit coastline group style in Style Editor", @@ -378,22 +415,26 @@ "Edit zones style in Style Editor": "Edit zones style in Style Editor", "Elevate brush: drag to gradually increase height of cells in radius by Power value": "Elevate brush: drag to gradually increase height of cells in radius by Power value", "Elevation profile": "Elevation profile", + "Emblem shape": "Emblem shape", "Emblems": "Emblems", "Emblems: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Emblems: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", "Emirate": "Emirate", "Empire": "Empire", "End battle: apply current results and close the screen": "End battle: apply current results and close the screen", + "English": "English", "Enter API key. Note: the Generator doesn't store the key or any generated data": "Enter API key. Note: the Generator doesn't store the key or any generated data", "Enter custom form name": "Enter custom form name", "Enter style preset name": "Enter style preset name", "Eparchy": "Eparchy", "Equirectangular projection is used: distortion is maximum on poles. Use map with aspect ratio 2:1 for best result": "Equirectangular projection is used: distortion is maximum on poles. Use map with aspect ratio 2:1 for best result", "Erebor": "Erebor", + "European": "European", "Evaporation from lake surface. If evaporation > supply, the lake water is saline. If difference is high, the lake becomes dry": "Evaporation from lake surface. If evaporation > supply, the lake water is saline. If difference is high, the lake becomes dry", "Evening": "Evening", "Examples. Click to re-generate": "Examples. Click to re-generate", "Exarchate": "Exarchate", "Execute the template": "Execute the template", + "Export": "Export", "Fantasy world Meridian length relative to real-world Earth (20k km)": "Fantasy world Meridian length relative to real-world Earth (20k km)", "Fantasy1": "Fantasy1", "Fantasy2": "Fantasy2", @@ -439,7 +480,9 @@ "Generate random name for the lake": "Generate random name for the lake", "Generate random name for the river": "Generate random name for the river", "Generate route name": "Generate route name", + "Generator settings:": "Generator settings:", "Generic": "Generic", + "Globe": "Globe", "Gondor": "Gondor", "Gonfalon": "Gonfalon", "Google font": "Google font", @@ -449,7 +492,11 @@ "Gray paper": "Gray paper", "Grid": "Grid", "Grid: click to toggle, drag to raise or lower. Ctrl + click to edit layer style and select type": "Grid: click to toggle, drag to raise or lower. Ctrl + click to edit layer style and select type", + "Growth rate": "Growth rate", "Guidon": "Guidon", + "Halo blur": "Halo blur", + "Halo opacity": "Halo opacity", + "Halo width": "Halo width", "Heater": "Heater", "Heightmap": "Heightmap", "Heightmap edit mode": "Heightmap edit mode", @@ -472,6 +519,7 @@ "Hide the group selection": "Hide the group selection", "Hide the label offset section": "Hide the label offset section", "Hide the letter spacing section": "Hide the letter spacing section", + "High Fantasy": "High Fantasy", "High Island": "High Island", "Highland": "Highland", "Hill: small blob": "Hill: small blob", @@ -483,7 +531,6 @@ "ia": "ia", "Ice": "Ice", "Icebergs and glaciers: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Icebergs and glaciers: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", - "Icons": "Icons", "If height is greater or equal to X and less or equal to Y, then perform an operation Z with operand V": "If height is greater or equal to X and less or equal to Y, then perform an operation Z with operand V", "Image scale relative to image size (e.g. 5x)": "Image scale relative to image size (e.g. 5x)", "Imamah": "Imamah", @@ -491,6 +538,7 @@ "Increases the polygon count to smooth the sharp points. Please note that it can take some time to calculate": "Increases the polygon count to smooth the sharp points. Please note that it can take some time to calculate", "Indented 3": "Indented 3", "Inherit": "Inherit", + "Interface size": "Interface size", "Invert heightmap along the axes": "Invert heightmap along the axes", "Iran small": "Iran small", "Iron Hills": "Iron Hills", @@ -506,6 +554,7 @@ "Kingdom": "Kingdom", "Kite": "Kite", "Kiwiroo": "Kiwiroo", + "Label": "Label", "Labels": "Labels", "Labels: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Labels: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", "Lake": "Lake", @@ -523,6 +572,7 @@ "Landing: amphibious attack": "Landing: amphibious attack", "Landmass": "Landmass", "Landmass area in selected units": "Landmass area in selected units", + "Language": "Language", "Layers": "Layers", "Layers preset:": "Layers preset:", "Layers reduction rate. Increase to improve performance": "Layers reduction rate. Increase to improve performance", @@ -535,8 +585,8 @@ "Line simplification rate. Increase to slightly improve performance": "Line simplification rate. Increase to slightly improve performance", "Line: select two points to change heights along the line": "Line: select two points to change heights along the line", "Linear": "Linear", + "Load": "Load", "Load fully-functional map (.map or .gz formats)": "Load fully-functional map (.map or .gz formats)", - "Load Google Translate and select language. Note that automatic translation can break some page functional. In this case reset the language back to English or refresh the page": "Load Google Translate and select language. Note that automatic translation can break some page functional. In this case reset the language back to English or refresh the page", "Load image to convert": "Load image to convert", "Load map file (.map or .gz) file from URL. Note that the server should allow CORS": "Load map file (.map or .gz) file from URL. Note that the server should allow CORS", "Load map file (.map or .gz) from your Dropbox": "Load map file (.map or .gz) from your Dropbox", @@ -555,14 +605,19 @@ "Manually re-assign provinces": "Manually re-assign provinces", "Map coordinates on globe": "Map coordinates on globe", "Map generation settings. Generate a new map to apply the settings": "Map generation settings. Generate a new map to apply the settings", + "Map name": "Map name", "Map presentation in 3D scene. Works best for heightmap. Cannot be used for editing": "Map presentation in 3D scene. Works best for heightmap. Cannot be used for editing", + "Map seed": "Map seed", "Map seed number. Press 'Enter' to apply. Seed produces the same map only if canvas size and options are the same": "Map seed number. Press 'Enter' to apply. Seed produces the same map only if canvas size and options are the same", + "Map settings (new map to apply):": "Map settings (new map to apply):", + "Markers": "Markers", "Marble big": "Marble big", "Marble Blue": "Marble Blue", "Marble Blue big": "Marble Blue big", "Marble small": "Marble small", "Marches": "Marches", "Margrave": "Margrave", + "Marker": "Marker", "Marker element size in pixels": "Marker element size in pixels", "Marker icon": "Marker icon", "Marker icon shift (by X and by Y axis), percent. Set to 50 to position icon in center": "Marker icon shift (by X and by Y axis), percent. Set to 50 to position icon in center", @@ -597,10 +652,12 @@ "Multiply all heights in range by factor": "Multiply all heights in range by factor", "Municipality": "Municipality", "Names data: a comma separated list of source names used for names generation": "Names data: a comma separated list of source names used for names generation", + "Namesbase": "Namesbase", "Nautical league (nlg)": "Nautical league (nlg)", "Nautical mile (nmi)": "Nautical mile (nmi)", "Naval": "Naval", "Naval Battle: naval units combat": "Naval Battle: naval units combat", + "New Map": "New Map", "New Map!": "New Map!", "Night": "Night", "No": "No", @@ -609,6 +666,7 @@ "Noldor": "Noldor", "Nomadic": "Nomadic", "Noon": "Noon", + "Notes": "Notes", "Number of burgs in group": "Number of burgs in group", "Number of columns": "Number of columns", "Number of lake inlet rivers": "Number of lake inlet rivers", @@ -620,6 +678,7 @@ "Old French": "Old French", "Old World": "Old World", "Oligarchy": "Oligarchy", + "Onload behavior": "Onload behavior", "Open Battle Simulation Tutorial": "Open Battle Simulation Tutorial", "Open burg map in a new tab": "Open burg map in a new tab", "Open Image Converter": "Open Image Converter", @@ -632,6 +691,7 @@ "Open Template Editor Tutorial": "Open Template Editor Tutorial", "Open wiki article scale and distance to know about grid scale": "Open wiki article scale and distance to know about grid scale", "Options": "Options", + "Oriental": "Oriental", "Oval": "Oval", "Pangea": "Pangea", "Parish": "Parish", @@ -656,11 +716,14 @@ "Place icons in a bulk": "Place icons in a bulk", "Places of interest": "Places of interest", "Plaster": "Plaster", + "Points number": "Points number", "Polish": "Polish", "Political map": "Political map", "Populate with letters that can be used twice in a row (geminates)": "Populate with letters that can be used twice in a row (geminates)", + "Population": "Population", "Population": "Population", "Population map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Population map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", + "Precipitation": "Precipitation", "Precipitation": "Precipitation", "Precipitation map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Precipitation map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", "Prefecture": "Prefecture", @@ -676,6 +739,7 @@ "Provinces": "Provinces", "Provinces displayed": "Provinces displayed", "Provinces map": "Provinces map", + "Provinces ratio": "Provinces ratio", "Provinces: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Provinces: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", "Pure landmass": "Pure landmass", "Pursue phase. Mounted units excel": "Pursue phase. Mounted units excel", @@ -700,6 +764,7 @@ "Refresh the Editor": "Refresh the Editor", "Refresh the overview screen": "Refresh the overview screen", "Refresh the Overview screen": "Refresh the Overview screen", + "Regenerate": "Regenerate", "Regenerate burg names based on assigned culture": "Regenerate burg names based on assigned culture", "Regenerate diplomatical relations": "Regenerate diplomatical relations", "Regenerate emblem": "Regenerate emblem", @@ -713,11 +778,13 @@ "Regiment type (land or naval). Click to change": "Regiment type (land or naval). Click to change", "Region": "Region", "Release all provinces. It will make all provinces with burgs independent": "Release all provinces. It will make all provinces with burgs independent", + "Relief": "Relief", "Relief": "Relief", "Relief and biome icons: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Relief and biome icons: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", "Relief Icons": "Relief Icons", "Religions": "Religions", "Religions map": "Religions map", + "Religions number": "Religions number", "Religions: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Religions: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", "Relocate burg. Click on map to move the burg": "Relocate burg. Click on map to move the burg", "Remove all provinces. States will remain as they are": "Remove all provinces. States will remain as they are", @@ -743,13 +810,15 @@ "Rename burgs in bulk": "Rename burgs in bulk", "Render cells below the sea level (with height less than 20)": "Render cells below the sea level (with height less than 20)", "Render heightmap data as a small monochrome image": "Render heightmap data as a small monochrome image", + "Rendering": "Rendering", "Rendering order: higher values are rendered on top": "Rendering order: higher values are rendered on top", "Republic": "Republic", "Rescaler: change height if condition is fulfilled": "Rescaler: change height if condition is fulfilled", "Reservation": "Reservation", "Reset diplomatical relations of selected state to Neutral": "Reset diplomatical relations of selected state to Neutral", - "Reset language to English": "Reset language to English", "Reset map zoom": "Reset map zoom", + "Reset to defaults": "Reset to defaults", + "Reset Zoom": "Reset Zoom", "Restore default canvas size": "Restore default canvas size", "Restore default namesbase": "Restore default namesbase", "Restore default theme color: pale magenta": "Restore default theme color: pale magenta", @@ -758,6 +827,7 @@ "Restore the defaults and re-define biomes based on current moisture and temperature": "Restore the defaults and re-define biomes based on current moisture and temperature", "Retreat phase. Units strength reduced": "Retreat phase. Units strength reduced", "Rhombille grid": "Rhombille grid", + "Rivers": "Rivers", "River": "River", "River discharge (flux power)": "River discharge (flux power)", "River drainage basin (watershed)": "River drainage basin (watershed)", @@ -768,6 +838,7 @@ "Rivers": "Rivers", "Rivers number": "Rivers number", "Rivers: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Rivers: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", + "Routes": "Routes", "Roll dice to update random factor": "Roll dice to update random factor", "Roman": "Roman", "Round": "Round", @@ -777,6 +848,7 @@ "Rulers": "Rulers", "Rulers: click to toggle, drag to move, click on label to delete. Ctrl + click to edit layer style": "Rulers: click to toggle, drag to move, click on label to delete. Ctrl + click to edit layer style", "Satrapy": "Satrapy", + "Save": "Save", "Save biomes-related data as a text file (.csv)": "Save biomes-related data as a text file (.csv)", "Save burgs-related data as a text file (.csv)": "Save burgs-related data as a text file (.csv)", "Save current JSON as a new style preset": "Save current JSON as a new style preset", @@ -828,6 +900,7 @@ "Select Dune icon": "Select Dune icon", "Select element group": "Select element group", "Select element id": "Select element id", + "Select element:": "Select element:", "Select emblem shape. Can be changed indivudually in Emblem editor": "Select emblem shape. Can be changed indivudually in Emblem editor", "Select file and create a link to share with your friends": "Select file and create a link to share with your friends", "Select filter for element. Please note filters may cause performance issues!": "Select filter for element. Please note filters may cause performance issues!", @@ -844,6 +917,7 @@ "Select Hill icon": "Select Hill icon", "Select how many distance units are in one pixel": "Select how many distance units are in one pixel", "Select icon": "Select icon", + "Select interface language": "Select interface language", "Select lake type (group)": "Select lake type (group)", "Select line interpolation type": "Select line interpolation type", "Select marker type for newly added markers.": "Select marker type for newly added markers.", @@ -1009,19 +1083,21 @@ "Shows whether there is already a preset with this name": "Shows whether there is already a preset with this name", "Siege: burg blockade and storming": "Siege: burg blockade and storming", "Simple": "Simple", + "Size variety": "Size variety", "Skirmish phase. Ranged units excel": "Skirmish phase. Ranged units excel", "Smooth 6": "Smooth 6", "Smooth 9": "Smooth 9", "Smooth all heights a bit": "Smooth all heights a bit", "Smooth brush: drag to level height of cells in radius to height of adjacent cells": "Smooth brush: drag to level height of cells in radius to height of adjacent cells", "Smooth the map replacing cell heights by an average values of its neighbors": "Smooth the map replacing cell heights by an average values of its neighbors", - "Soided paper vertical": "Soided paper vertical", "Soiled paper horizontal": "Soiled paper horizontal", + "Soiled paper vertical": "Soiled paper vertical", "Sortie phase. Make a sortie from besieged town. Melee units excel": "Sortie phase. Make a sortie from besieged town. Melee units excel", "Spain small": "Spain small", "Spanish": "Spanish", "Speak the examples. You can change voice and language in options": "Speak the examples. You can change voice and language in options", "Speak the name. You can change voice and language in options": "Speak the name. You can change voice and language in options", + "Speaker voice": "Speaker voice", "Split map into smaller png tiles and download as zip archive": "Split map into smaller png tiles and download as zip archive", "Split regiment into 2 separate ones": "Split regiment into 2 separate ones", "Square": "Square", @@ -1029,6 +1105,7 @@ "Square grid": "Square grid", "Squared": "Squared", "Squarish": "Squarish", + "Standard": "Standard", "Standard 3": "Standard 3", "Standard 4": "Standard 4", "Standard view mode that allows to edit the map": "Standard view mode that allows to edit the map", @@ -1040,6 +1117,7 @@ "State borders: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "State borders: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", "State form name": "State form name", "State full name": "State full name", + "State labels": "State labels", "State name. Click to sort": "State name. Click to sort", "State population. Click to sort": "State population. Click to sort", "State short name": "State short name", @@ -1053,6 +1131,8 @@ "Strait: centered vertical or horizontal depression": "Strait: centered vertical or horizontal depression", "Style": "Style", "Style JSON is getting formed based the current settings, but can be entered manually": "Style JSON is getting formed based the current settings, but can be entered manually", + "Style preset:": "Style preset:", + "Submap": "Submap", "Submit to Reddit": "Submit to Reddit", "Sultanat": "Sultanat", "Support Ukraine": "Support Ukraine", @@ -1062,6 +1142,7 @@ "Taklamakan": "Taklamakan", "Targe": "Targe", "Targe2": "Targe2", + "Texture": "Texture", "Temperature": "Temperature", "Temperature controls response randomness; higher values mean more creativity, lower values mean more predictability": "Temperature controls response randomness; higher values mean more creativity, lower values mean more predictability", "Temperature map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Temperature map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", @@ -1072,7 +1153,8 @@ "Texture": "Texture", "Texture overlay: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Texture overlay: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", "The {{noun}}": "The {{noun}}", - "The selected layer is not visible. Toogle it on to see style changes effect": "The selected layer is not visible. Toogle it on to see style changes effect", + "The selected layer is not visible. Toggle it on to see style changes effect": "The selected layer is not visible. Toggle it on to see style changes effect", + "Theme color": "Theme color", "Theocracy": "Theocracy", "Timber Cut big": "Timber Cut big", "Timber Cut small": "Timber Cut small", @@ -1088,6 +1170,7 @@ "Toggle wireframe mode": "Toggle wireframe mode", "Tool settings that don't affect maps. Changes are getting applied immediately": "Tool settings that don't affect maps. Changes are getting applied immediately", "Tools": "Tools", + "Tooltip size": "Tooltip size", "Total burgs number": "Total burgs number", "Total cells number": "Total cells number", "Total land area": "Total land area", @@ -1100,6 +1183,8 @@ "Total population": "Total population", "Trade Company": "Trade Company", "Trade routes: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Trade routes: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", + "Transform": "Transform", + "Transparency": "Transparency", "Triangle": "Triangle", "Triangle grid (horizontal)": "Triangle grid (horizontal)", "Triangle grid (vertical)": "Triangle grid (vertical)", @@ -1142,6 +1227,7 @@ "United Republic": "United Republic", "United States": "United States", "United Tribes": "United Tribes", + "Units": "Units", "Update the scene": "Update the scene", "Upload a namesbase from PC, extending the current set": "Upload a namesbase from PC, extending the current set", "Upload a namesbase from PC, replacing the current set": "Upload a namesbase from PC, replacing the current set", @@ -1155,6 +1241,7 @@ "Versta (vr)": "Versta (vr)", "Vesica Piscis": "Vesica Piscis", "Viceroyalty": "Viceroyalty", + "View mode:": "View mode:", "Vignette": "Vignette", "Vignette (border fading): click to toggle. Ctrl + click to edit style": "Vignette (border fading): click to toggle. Ctrl + click to edit style", "Vignette rectangle position (in percents)": "Vignette rectangle position (in percents)", @@ -1176,6 +1263,7 @@ "Withdrawal phase. Naval units try to escape enemy fleet": "Withdrawal phase. Naval units try to escape enemy fleet", "X axis position in percentage (minX-maxX or X)": "X axis position in percentage (minX-maxX or X)", "Y axis position in percentage (minY-maxY or Y)": "Y axis position in percentage (minY-maxY or Y)", + "Year and era": "Year and era", "Zone area": "Zone area", "Zone cells count": "Zone cells count", "Zone description": "Zone description", @@ -1183,6 +1271,7 @@ "Zone type": "Zone type", "Zones": "Zones", "Zones: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "Zones: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style", + "Zoom extent": "Zoom extent", "Zoom map and center view in the burg": "Zoom map and center view in the burg", "Сhase phase. Naval units pursue and rarely shell enemy fleet": "Сhase phase. Naval units pursue and rarely shell enemy fleet" } diff --git a/public/locales/fr/lang.json b/public/locales/fr/lang.json index b6c6bd1d..59534922 100644 --- a/public/locales/fr/lang.json +++ b/public/locales/fr/lang.json @@ -1,18 +1,34 @@ { "{{adjective}} {{noun}}": "{{noun}} {{adjective, gender}}", "{{noun}} of {{complement}}": "{{noun}} {{complement, of}}", + "{{provinceName}} {{provinceForm}}": "{{provinceForm}} {{provinceName, of}}", + "Biomes": "Biomes", + "Cultures": "Cultures", + "Grid": "Grille", + "Heightmap": "Altitude", + "Icons": "Icônes", + "Labels": "Libellés", + "Military": "Armées", + "Provinces": "Provinces", + "Religions": "Religions", + "States": "États", + "Temperature": "Température", + "Wind Rose": "Rose des vents", + "Zones": "Zones", + "3D scene": "Scène 3D", "About": "À propos", "Activate/deactivate group": "", - "Add a custom biome": "", - "Add a font": "", + "Add": "Ajouter", + "Add a custom biome": "Ajouter un biome personnalisé", + "Add a font": "Ajouter une police", "Add a new burg. Hold Shift to add multiple": "", "Add a new marker. Hold Shift to add multiple": "", "Add a new province. Hold Shift to add multiple": "", "Add additional marker of that type": "", "Add an Iceberg (click on map)": "", "Add new namesbase": "", - "Add new Regiment": "", - "Add new zone layer": "", + "Add new Regiment": "Ajouter un nouveau régiment", + "Add new zone layer": "Ajouter un nouveau calque de zone", "Add or subtract value from all heights in range": "", "Add regiment to the battle": "", "Add route group": "", @@ -28,13 +44,14 @@ "Ambush: surprise attack": "", "Analyze namesbase to get a validity and quality overview": "", "Anchor Icons": "", + "Antique": "", "Antique big": "", "Antique small": "", - "Apply a filter": "", + "Apply a filter": "Appliquer un filtre", "Apply assignment": "", "Apply current assignment": "", "Archipelago": "Archipel", - "Area": "", + "Area": "Superficie", "Atoll": "Atoll", "Attach regiment to another one (include this regiment to another one)": "", "Attack foreign regiment": "", @@ -46,6 +63,7 @@ "Auto-assign colors using generator scheme (for exported colored heightmaps)": "", "Automatically add river starting from clicked cell. Hold Shift to add multiple": "", "Autonomy": "", + "Autosave interval": "Intervalle de sauvegarde", "Average area": "", "Average discharge": "", "Average forces rate per state": "", @@ -55,6 +73,7 @@ "Average number of people in crew (used for total personnel calculation)": "", "Average population": "", "Average War Alert": "", + "Azgaar assistant": "Assistant Azgaar", "Banner": "", "Barony": "Baronnie", "Baroque": "Baroque", @@ -70,11 +89,15 @@ "Blobs to add, use hyphen to get a random number in range": "", "Blockade phase. Prepare or hold the blockade": "", "Boarding phase. Melee units go aboard": "", + "Body filter": "", + "Body opacity": "", "Boeotian": "Béotien", "Bombardment phase. Attack enemy with machinery units": "", + "Borders": "Frontières", "Borders": "Frontières", "Brotherhood": "Confrérie", "Bubble": "", + "Burg": "", "Burg average yearly temperature": "", "Burg emblem. Click to edit": "", "Burg height above mean sea level": "", @@ -82,8 +105,12 @@ "Burg icons: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "Burg map preview": "", "Burg preview generator": "", + "Burgs": "", "Burgs displayed": "", + "Burgs number": "", "Butt": "", + "Cells": "Cellules", + "Coordinates": "Coordonnées", "Calculated size of image if combined": "", "Caliphate": "Califat", "Cancel assignment": "", @@ -91,6 +118,7 @@ "Cancel the conversion. Previous heightmap will be restored": "", "Cancel the creation": "", "Canton": "Canton", + "Canvas size": "Taille du canevas", "Canvas size. Can be changed in general options on new map generation": "", "Captaincy": "Capitainerie", "Cells": "Cellules", @@ -101,6 +129,7 @@ "Change height for all cells": "", "Change Iceberg size": "", "Change tool power. Shortcut: + to increase; – to decrease": "", + "Charts": "", "Check if unit is separate and can be stacked only with units of the same type": "", "Check to fit burg styles (icon and label size) to the submap scale": "", "Check to not allow system to automatically hide labels": "", @@ -236,6 +265,7 @@ "Confederation": "Confédération", "Config markers generation options": "", "Configure burg groups": "", + "Configure World": "", "Configure world and map size and climate settings": "", "Conglomerate": "Conglomérat", "Connect your Dropbox account to be able to load maps from it": "", @@ -249,6 +279,7 @@ "Copy selected relief icon": "", "Council": "Conseil", "County": "Comté", + "Create": "Créer", "Create a new group for this coastline": "", "Create a new group for this label": "", "Create a new regiment or fleet": "", @@ -261,11 +292,14 @@ "Culture-random": "", "Culture-specific": "", "Cultures": "Cultures", + "Cultures number": "", + "Cultures set": "Ensemble de cultures", "Cultures: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "Curved": "", "Custom": "", "Custom (not saved)": "", "Custom name": "", + "Dark Fantasy": "", "Dawn": "Aube", "Deanery": "Doyenné", "Defenders morale: ": "", @@ -286,12 +320,13 @@ "Define the size of relief icons. All relief icons will be regenerated": "", "Define transparency of fill color": "", "Define transparency of temperature leyer. Set to 0 to make it fully transparent": "", - "degree Delisle (°De)": "", - "degree Fahrenheit (°F)": "", - "degree Newton (°N)": "", - "degree Rankine (°R)": "", - "degree Réaumur (°Ré)": "", - "degree Rømer (°Rø)": "", + "degree Celsius (°C)": "degré Celsius (°C)", + "degree Delisle (°De)": "degré Delisle (°De)", + "degree Fahrenheit (°F)": "degré Fahrenheit (°F)", + "degree Newton (°N)": "degré Newton (°N)", + "degree Rankine (°R)": "degré Rankine (°R)", + "degree Réaumur (°Ré)": "degré Réaumur (°Ré)", + "degree Rømer (°Rø)": "degré Rømer (°Rø)", "Department": "Département", "Dependency": "Dépendance", "Depress brush: drag to gradually decrease height of cells in radius by Power value": "", @@ -302,8 +337,9 @@ "Diamond": "", "Diarchy": "Diarchie", "Diocese": "Diocèse", + "Diplomacy": "Diplomatie", "Display brushes panel": "", - "Displayed layers and layers order:": "", + "Displayed layers and layers order:": "Calques affichés et ordre des calques", "Disrupt (randomize) heights a bit": "", "Disrupt brush: drag to randomize height of cells in radius based on Power value": "", "Distance between grid cell centers (in map scale)": "", @@ -349,6 +385,7 @@ "Duchy": "Duché", "Earldom": "Comté", "Easterling": "", + "Edit": "Éditer", "Edit biomes style in Style Editor": "", "Edit burg groups": "", "Edit coastline group style in Style Editor": "", @@ -378,22 +415,26 @@ "Edit zones style in Style Editor": "", "Elevate brush: drag to gradually increase height of cells in radius by Power value": "", "Elevation profile": "", + "Emblem shape": "Forme des emblèmes", "Emblems": "Emblèmes", "Emblems: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "Emirate": "Émirat", "Empire": "Empire", "End battle: apply current results and close the screen": "", + "English": "", "Enter API key. Note: the Generator doesn't store the key or any generated data": "", "Enter custom form name": "", "Enter style preset name": "", "Eparchy": "Éparchie", "Equirectangular projection is used: distortion is maximum on poles. Use map with aspect ratio 2:1 for best result": "", "Erebor": "", + "European": "", "Evaporation from lake surface. If evaporation > supply, the lake water is saline. If difference is high, the lake becomes dry": "", "Evening": "Soir", "Examples. Click to re-generate": "", "Exarchate": "Exarchat", "Execute the template": "", + "Export": "Exporter", "Fantasy world Meridian length relative to real-world Earth (20k km)": "", "Fantasy1": "", "Fantasy2": "", @@ -439,7 +480,9 @@ "Generate random name for the lake": "", "Generate random name for the river": "", "Generate route name": "", + "Generator settings:": "", "Generic": "", + "Globe": "", "Gondor": "", "Gonfalon": "", "Google font": "", @@ -449,7 +492,11 @@ "Gray paper": "", "Grid": "Grille", "Grid: click to toggle, drag to raise or lower. Ctrl + click to edit layer style and select type": "", + "Growth rate": "Taux de croissance", "Guidon": "", + "Halo blur": "Flou du halo", + "Halo opacity": "Opacité du halo", + "Halo width": "Largeur du halo", "Heater": "", "Heightmap": "Altitude", "Heightmap edit mode": "", @@ -472,6 +519,7 @@ "Hide the group selection": "", "Hide the label offset section": "", "Hide the letter spacing section": "", + "High Fantasy": "", "High Island": "", "Highland": "", "Hill: small blob": "", @@ -483,7 +531,6 @@ "ia": "ie", "Ice": "Glace", "Icebergs and glaciers: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", - "Icons": "Icônes", "If height is greater or equal to X and less or equal to Y, then perform an operation Z with operand V": "", "Image scale relative to image size (e.g. 5x)": "", "Imamah": "Imamat", @@ -491,6 +538,7 @@ "Increases the polygon count to smooth the sharp points. Please note that it can take some time to calculate": "", "Indented 3": "", "Inherit": "", + "Interface size": "Taille de l'interface", "Invert heightmap along the axes": "", "Iran small": "", "Iron Hills": "", @@ -506,6 +554,7 @@ "Kingdom": "Royaume", "Kite": "", "Kiwiroo": "", + "Label": "Libellé", "Labels": "Libellés", "Labels: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "Lake": "Lac", @@ -517,12 +566,13 @@ "Lake shore length in selected units": "", "Lake water supply. If supply > evaporation and there is an outlet, the lake water is fresh. If supply is very low, the lake becomes dry": "", "Lakes": "Lacs", - "Land": "", + "Land": "Terre", "Landgrave": "Landgraviat", "Landing phase. Amphibious attack. Units are vulnerable against prepared defense": "", "Landing: amphibious attack": "", "Landmass": "Terres émergées", "Landmass area in selected units": "", + "Language": "Langue", "Layers": "Calques", "Layers preset:": "Préréglage de calques", "Layers reduction rate. Increase to improve performance": "", @@ -535,8 +585,8 @@ "Line simplification rate. Increase to slightly improve performance": "", "Line: select two points to change heights along the line": "", "Linear": "", + "Load": "Charger", "Load fully-functional map (.map or .gz formats)": "", - "Load Google Translate and select language. Note that automatic translation can break some page functional. In this case reset the language back to English or refresh the page": "", "Load image to convert": "", "Load map file (.map or .gz) file from URL. Note that the server should allow CORS": "", "Load map file (.map or .gz) from your Dropbox": "", @@ -555,14 +605,19 @@ "Manually re-assign provinces": "", "Map coordinates on globe": "", "Map generation settings. Generate a new map to apply the settings": "", + "Map name": "Nom de la carte", "Map presentation in 3D scene. Works best for heightmap. Cannot be used for editing": "", + "Map seed": "", "Map seed number. Press 'Enter' to apply. Seed produces the same map only if canvas size and options are the same": "", + "Map settings (new map to apply):": "", + "Markers": "Marqueurs", "Marble big": "", "Marble Blue": "", "Marble Blue big": "", "Marble small": "", "Marches": "Marche", "Margrave": "Margraviat", + "Marker": "", "Marker element size in pixels": "", "Marker icon": "", "Marker icon shift (by X and by Y axis), percent. Set to 50 to position icon in center": "", @@ -597,10 +652,12 @@ "Multiply all heights in range by factor": "", "Municipality": "Municipalité", "Names data: a comma separated list of source names used for names generation": "", + "Namesbase": "", "Nautical league (nlg)": "Lieue nautique (nlg)", "Nautical mile (nmi)": "Mile nautique (nmi)", "Naval": "Naval", "Naval Battle: naval units combat": "", + "New Map": "Nouvelle carte", "New Map!": "Nouvelle carte !", "Night": "Nuit", "No": "", @@ -609,6 +666,7 @@ "Noldor": "", "Nomadic": "", "Noon": "Midi", + "Notes": "Notes", "Number of burgs in group": "", "Number of columns": "", "Number of lake inlet rivers": "", @@ -620,6 +678,7 @@ "Old French": "", "Old World": "", "Oligarchy": "Oligarchie", + "Onload behavior": "", "Open Battle Simulation Tutorial": "", "Open burg map in a new tab": "", "Open Image Converter": "", @@ -632,6 +691,7 @@ "Open Template Editor Tutorial": "", "Open wiki article scale and distance to know about grid scale": "", "Options": "Options", + "Oriental": "", "Oval": "", "Pangea": "Pangée", "Parish": "", @@ -656,11 +716,14 @@ "Place icons in a bulk": "", "Places of interest": "Lieux d'intérêt", "Plaster": "", + "Points number": "Nombre de points", "Polish": "", "Political map": "Carte politique", "Populate with letters that can be used twice in a row (geminates)": "", + "Population": "Population", "Population": "Population", "Population map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", + "Precipitation": "Précipitation", "Precipitation": "Précipitation", "Precipitation map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "Prefecture": "Préfecture", @@ -676,6 +739,7 @@ "Provinces": "Provinces", "Provinces displayed": "", "Provinces map": "Carte des provinces", + "Provinces ratio": "", "Provinces: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "Pure landmass": "Terres émergées", "Pursue phase. Mounted units excel": "", @@ -700,6 +764,7 @@ "Refresh the Editor": "", "Refresh the overview screen": "", "Refresh the Overview screen": "", + "Regenerate": "Regénérer", "Regenerate burg names based on assigned culture": "", "Regenerate diplomatical relations": "", "Regenerate emblem": "", @@ -713,11 +778,13 @@ "Regiment type (land or naval). Click to change": "", "Region": "Région", "Release all provinces. It will make all provinces with burgs independent": "", + "Relief": "Relief", "Relief": "Relief", "Relief and biome icons: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "Relief Icons": "", "Religions": "Religions", "Religions map": "Carte des religions", + "Religions number": "Nombre de religions", "Religions: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "Relocate burg. Click on map to move the burg": "", "Remove all provinces. States will remain as they are": "", @@ -743,13 +810,15 @@ "Rename burgs in bulk": "", "Render cells below the sea level (with height less than 20)": "", "Render heightmap data as a small monochrome image": "", + "Rendering": "Rendu", "Rendering order: higher values are rendered on top": "", "Republic": "République", "Rescaler: change height if condition is fulfilled": "", "Reservation": "Réserve", "Reset diplomatical relations of selected state to Neutral": "", - "Reset language to English": "", "Reset map zoom": "", + "Reset to defaults": "", + "Reset Zoom": "Réinit Zoom", "Restore default canvas size": "", "Restore default namesbase": "", "Restore default theme color: pale magenta": "", @@ -758,6 +827,7 @@ "Restore the defaults and re-define biomes based on current moisture and temperature": "", "Retreat phase. Units strength reduced": "", "Rhombille grid": "", + "Rivers": "Fleuves", "River": "Fleuve", "River discharge (flux power)": "", "River drainage basin (watershed)": "", @@ -766,17 +836,19 @@ "River source additional width. Default value is 0": "", "River width multiplier. Default value is 1": "", "Rivers": "Fleuves", - "Rivers number": "", + "Rivers number": "Nombre de fleuves", "Rivers: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", + "Routes": "Routes", "Roll dice to update random factor": "", "Roman": "", "Round": "", "Route length in selected units": "", "Routes": "Routes", - "Routes number": "", + "Routes number": "Nombre de routes", "Rulers": "Règles", "Rulers: click to toggle, drag to move, click on label to delete. Ctrl + click to edit layer style": "", "Satrapy": "Satrapie", + "Save": "Sauver", "Save biomes-related data as a text file (.csv)": "", "Save burgs-related data as a text file (.csv)": "", "Save current JSON as a new style preset": "", @@ -828,6 +900,7 @@ "Select Dune icon": "", "Select element group": "", "Select element id": "", + "Select element:": "", "Select emblem shape. Can be changed indivudually in Emblem editor": "", "Select file and create a link to share with your friends": "", "Select filter for element. Please note filters may cause performance issues!": "", @@ -844,6 +917,7 @@ "Select Hill icon": "", "Select how many distance units are in one pixel": "", "Select icon": "", + "Select interface language": "", "Select lake type (group)": "", "Select line interpolation type": "", "Select marker type for newly added markers.": "", @@ -1009,19 +1083,21 @@ "Shows whether there is already a preset with this name": "", "Siege: burg blockade and storming": "", "Simple": "", + "Size variety": "", "Skirmish phase. Ranged units excel": "", "Smooth 6": "", "Smooth 9": "", "Smooth all heights a bit": "", "Smooth brush: drag to level height of cells in radius to height of adjacent cells": "", "Smooth the map replacing cell heights by an average values of its neighbors": "", - "Soided paper vertical": "", "Soiled paper horizontal": "", + "Soiled paper vertical": "", "Sortie phase. Make a sortie from besieged town. Melee units excel": "", "Spain small": "", "Spanish": "", "Speak the examples. You can change voice and language in options": "", "Speak the name. You can change voice and language in options": "", + "Speaker voice": "Voix du locuteur", "Split map into smaller png tiles and download as zip archive": "", "Split regiment into 2 separate ones": "", "Square": "", @@ -1029,6 +1105,7 @@ "Square grid": "", "Squared": "", "Squarish": "", + "Standard": "", "Standard 3": "", "Standard 4": "", "Standard view mode that allows to edit the map": "", @@ -1040,12 +1117,13 @@ "State borders: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "State form name": "", "State full name": "", + "State labels": "Libellés d'état", "State name. Click to sort": "", "State population. Click to sort": "", "State short name": "", "State-specific": "", "States": "États", - "States number": "", + "States number": "Nombre d'états", "States: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "Stone big": "", "Stone small": "", @@ -1053,6 +1131,8 @@ "Strait: centered vertical or horizontal depression": "", "Style": "Style", "Style JSON is getting formed based the current settings, but can be entered manually": "", + "Style preset:": "Préréglage de style :", + "Submap": "Sous-carte", "Submit to Reddit": "", "Sultanat": "Sultanat", "Support Ukraine": "", @@ -1062,6 +1142,7 @@ "Taklamakan": "", "Targe": "", "Targe2": "", + "Texture": "Texture", "Temperature": "Température", "Temperature controls response randomness; higher values mean more creativity, lower values mean more predictability": "", "Temperature map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", @@ -1072,7 +1153,8 @@ "Texture": "Texture", "Texture overlay: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", "The {{noun}}": "{{noun, the}}", - "The selected layer is not visible. Toogle it on to see style changes effect": "", + "The selected layer is not visible. Toggle it on to see style changes effect": "", + "Theme color": "Couleur de thème", "Theocracy": "Théocracie", "Timber Cut big": "", "Timber Cut small": "", @@ -1088,18 +1170,21 @@ "Toggle wireframe mode": "", "Tool settings that don't affect maps. Changes are getting applied immediately": "", "Tools": "Outils", + "Tooltip size": "Taille des info-bulles", "Total burgs number": "", "Total cells number": "", "Total land area": "", "Total land cells number": "", - "Total map area": "", - "Total map population": "", + "Total map area": "Superficie totale de la carte", + "Total map population": "Population totale de la carte", "Total military forces": "", "Total military personnel (considering crew). Click to sort": "", "Total military personnel (not considering crew). Click to sort": "", - "Total population": "", + "Total population": "Population totale", "Trade Company": "Compagnie Commerciale", "Trade routes: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", + "Transform": "", + "Transparency": "Transparence", "Triangle": "", "Triangle grid (horizontal)": "", "Triangle grid (vertical)": "", @@ -1142,6 +1227,7 @@ "United Republic": "République Unie", "United States": "États Unis", "United Tribes": "Tribus Unies", + "Units": "Unités", "Update the scene": "", "Upload a namesbase from PC, extending the current set": "", "Upload a namesbase from PC, replacing the current set": "", @@ -1155,6 +1241,7 @@ "Versta (vr)": "", "Vesica Piscis": "", "Viceroyalty": "Vice-royauté", + "View mode:": "Mode de vue", "Vignette": "Vignette", "Vignette (border fading): click to toggle. Ctrl + click to edit style": "", "Vignette rectangle position (in percents)": "", @@ -1176,13 +1263,15 @@ "Withdrawal phase. Naval units try to escape enemy fleet": "", "X axis position in percentage (minX-maxX or X)": "", "Y axis position in percentage (minY-maxY or Y)": "", - "Zone area": "", + "Year and era": "Année et ère", + "Zone area": "Superficie de la zone", "Zone cells count": "", - "Zone description": "", - "Zone population": "", - "Zone type": "", + "Zone description": "Description de la zone", + "Zone population": "Population de la zone", + "Zone type": "Type de zone", "Zones": "Zones", "Zones: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style": "", + "Zoom extent": "", "Zoom map and center view in the burg": "", "Сhase phase. Naval units pursue and rarely shell enemy fleet": "" } diff --git a/public/main.js b/public/main.js index bc97880f..363efa63 100644 --- a/public/main.js +++ b/public/main.js @@ -220,7 +220,7 @@ oceanLayers .attr("height", graphHeight); document.addEventListener("DOMContentLoaded", async () => { - if (window.locale !== "en") await i18n; + await initLocale(); if (!location.hostname) { const wiki = "https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Run-FMG-locally"; alertMessage.innerHTML = /* html */ `Fantasy Map Generator cannot run serverless. Follow the instructions on how you can easily run a local web-server`; diff --git a/public/modules/ui/options.js b/public/modules/ui/options.js index 07d77cb0..ad5978d7 100644 --- a/public/modules/ui/options.js +++ b/public/modules/ui/options.js @@ -149,6 +149,7 @@ optionsContent.addEventListener("change", event => { else if (id === "eraInput") changeEra(); else if (id === "stateLabelsModeInput") options.stateLabelsMode = value; else if (id === "azgaarAssistant") toggleAssistant(); + else if (id === "language") changeLanguage(value); }); optionsContent.addEventListener("click", event => { @@ -162,8 +163,6 @@ optionsContent.addEventListener("click", event => { else if (id === "translateExtent") toggleTranslateExtent(event.target); else if (id === "speakerTest") testSpeaker(); else if (id === "themeColorRestore") restoreDefaultThemeColor(); - else if (id === "loadGoogleTranslateButton") loadGoogleTranslate(); - else if (id === "resetLanguage") resetLanguage(); }); function mapSizeInputChange() { @@ -462,44 +461,6 @@ function changeDialogsTheme(themeColor, transparency) { }); } -function loadGoogleTranslate() { - const script = document.createElement("script"); - script.src = "https://translate.google.com/translate_a/element.js?cb=initGoogleTranslate"; - script.onload = () => { - byId("loadGoogleTranslateButton")?.remove(); - - // replace mapLayers underline with bare text to avoid translation issue - document - .getElementById("mapLayers") - .querySelectorAll("li") - .forEach(el => { - const text = el.innerHTML.replace(/(.+)<\/u>/g, "$1"); - el.innerHTML = text; - }); - }; - - document.head.appendChild(script); -} - -function initGoogleTranslate() { - new google.translate.TranslateElement( - {pageLanguage: "en", layout: google.translate.TranslateElement.InlineLayout.VERTICAL}, - "google_translate_element" - ); -} - -function resetLanguage() { - const languageSelect = document.querySelector("#google_translate_element select"); - if (!languageSelect.value) return; - - languageSelect.value = "en"; - languageSelect.handleChange(new Event("change")); - - // do once again to actually reset the language - languageSelect.value = "en"; - languageSelect.handleChange(new Event("change")); -} - function changeZoomExtent(value) { if (+zoomExtentMin.value > +zoomExtentMax.value) { [zoomExtentMin.value, zoomExtentMax.value] = [zoomExtentMax.value, zoomExtentMin.value]; @@ -562,6 +523,8 @@ function applyStoredOptions() { if (stored("tooltipSize")) changeTooltipSize(stored("tooltipSize")); if (stored("regions")) changeStatesNumber(stored("regions")); + if (stored("language")) changeLanguage(stored("language")); + else changeLanguage("en"); uiSize.max = uiSize.max = getUImaxSize(); if (stored("uiSize")) changeUiSize(+stored("uiSize")); @@ -696,6 +659,10 @@ function changeEra() { options.era = eraInput.value; } +function changeLanguage(value) { + options.language = value; +} + async function openTemplateSelectionDialog() { const HeightmapSelectionDialog = await import("../dynamic/heightmap-selection.js?v=1.96.00"); HeightmapSelectionDialog.open(); diff --git a/src/index.html b/src/index.html index 28bb98de..4f8c7a62 100644 --- a/src/index.html +++ b/src/index.html @@ -500,7 +500,7 @@ >
  • Ctrl + click to edit layer style
    -

    View mode:

    - - +

    @@ -799,7 +801,7 @@ onclick="requestRemoveStylePreset()" > -

    Select element:

    +

    Select element:

    @@ -1414,21 +1416,21 @@ - Halo width + Halo width - Halo opacity + Halo opacity - Halo blur + Halo blur @@ -1613,7 +1615,7 @@
    -

    +

    Map settings (new map to apply):

    @@ -1623,7 +1625,7 @@ - + - + @@ -1662,7 +1664,7 @@ - + - + - + - + @@ -1743,7 +1745,7 @@ - + @@ -1756,17 +1758,17 @@ - + @@ -1776,7 +1778,7 @@ - + @@ -1786,7 +1788,7 @@ - + @@ -1796,7 +1798,7 @@ - + @@ -1806,7 +1808,7 @@ - + @@ -1816,7 +1818,7 @@ - + @@ -1831,7 +1833,7 @@ - + - +
    Canvas sizeCanvas size x @@ -1643,7 +1645,7 @@ class="icon-hourglass-1" > Map seedMap seed Points numberPoints number Map nameMap name Year and eraYear and era HeightmapHeightmap Cultures numberCultures number Cultures setCultures set States numberStates number Provinces ratioProvinces ratio Size varietySize variety Growth rateGrowth rate Burgs numberBurgs number Religions numberReligions number State labelsState labels
    -

    +

    Generator settings:

    @@ -1867,7 +1869,7 @@ data-tip="Set user interface size. Please note browser zoom also affects interface size (Ctrl + or Ctrl - to change)" > - + @@ -1875,7 +1877,7 @@ - + @@ -1885,7 +1887,7 @@ - + @@ -1896,7 +1898,7 @@ - + @@ -1904,7 +1906,7 @@ - + - + - + - + @@ -1967,7 +1969,7 @@ - + - + - + + + - - @@ -2108,6 +2110,7 @@
    -
    Edit
    +
    Edit
    - - - - - - - - + - - - - - - + +
    -
    Regenerate
    +
    Regenerate
    - - - + + + - - - + - +
    -
    Add
    +
    Add
    -
    Show
    +
    Show
    -
    -
    Create
    +
    Create
    - - + +
    @@ -2515,11 +2533,11 @@
    - - - - - + + + + +
    @@ -5338,7 +5356,7 @@
    Interface sizeInterface size
    Tooltip sizeTooltip size Theme colorTheme color
    TransparencyTransparency
    Autosave intervalAutosave interval Onload behaviorOnload behavior
    Azgaar assistantAzgaar assistant
    Speaker voiceSpeaker voice Emblem shapeEmblem shape Zoom extentZoom extent min RenderingRendering
    Language - - Language - -
    +