-
Notifications
You must be signed in to change notification settings - Fork 2
Adding support for your language
James Blackburn edited this page Oct 2, 2021
·
1 revision
- Head to this link and get your copy of the
lang.json
- Open this file in your favourite programming editor (I'd personally recommend vscode or npp
- Take the section that reads
"en":{
all the way up to the penultimate}
and copy this. Now place a comma after the penultimate}
and paste your copied text. Your file should now look like this:
{
"en":{
"Recipe Name:":"Recipe Name:",
"Volume:":"Volume:",
"Boil Volume:":"Boil Volume:",
"Remove":"Remove",
"Add New":"Add New",
"Adjust Weight":"Adjust Weight",
"Original Gravity":"Original Gravity",
"Zero":"Zero",
"Recalculate":"Recalculate",
"Calculation":"Calculation",
"Add Hop":"Add Hop",
"Bitterness IBU":"Bitterness IBU",
"Quit":"Quit",
"Time +1":"Time +1",
"Time -1":"Time -1",
"Time +10":"Time +10",
"Time -10":"Time -10",
"Alpha +0.1":"Alpha +0.1",
"Alpha -0.1":"Alpha -0.1",
"Alpha +1":"Alpha +1",
"Alpha -1":"Alpha -1",
"Imperial Units":"Imperial Units",
"Delete":"Delete",
"Modify":"Modify",
"New":"New",
"Name:":"Name:",
"Form:":"Form:",
"Origin:":"Origin:",
"Alpha:":"Alpha:",
"Use:":"Use:",
"Comments:":"Comments:",
"Cancel":"Cancel",
"Clear Form":"Clear Form",
"Done":"Done",
"Save to Database":"Save to Database",
"Colour:":"Colour:",
"Extract:":"Extract:",
"Moisture:":"Moisture:",
"Fermentability:":"Fermentability:",
"Type:":"Type:",
"Target Volume:":"Target Volume:",
"Boil Volume Scale:":"Boil Volume Scale:",
"Liquor To Grist Ratio:":"Liquor To Grist Ratio:",
"Litres":"Litres",
"Mash Efficiency:":"Mash Efficiency:",
"Save All As Defaults":"Save All As Defaults",
"Reset to Local Database":"Reset to Local Database",
"Attenuation Default:":"Attenuation Default:",
"Save on Close:":"Save on Close:",
"Default Boil Time:":"Default Boil Time:",
"Minutes":"Minutes",
"Update Default Configuration:":"Update Default Configuration:",
"Yeast Attenuation":"Yeast Attenuation",
"Low":"Low",
"Med":"Med",
"High":"High",
"Water Chemistry Additions":"Water Chemistry Additions",
"Water Boil:":"Water Boil:",
"Boil Time:":"Boil Time:",
"Lab:":"Lab:",
"Flocculation:":"Flocculation:",
"Attenuation:":"Attenuation:",
"Temperature:":"Temperature:",
"Engine Room":"Engine Room",
"Hop Editor":"Hop Editor",
"Grist Editor":"Grist Editor",
"Yeast Editor":"Yeast Editor",
"Defaults Editor":"Defaults Editor",
"Experimental Attenuation":"Experimental Attenuation",
"Notes Area":"Notes Area",
"Fermentable Ingredient":"Fermentable Ingredient",
"Hop Variety":"Hop Variety",
"Name: ":"Name: ",
"Time: ":"Time: ",
"Type: ":"Type: ",
"Save To Database":"Save To Database",
"Are you sure you wish to open this file? Any unsaved changes will be lost":"Are you sure you wish to open this file? Any unsaved changes will be lost",
"Save and open":"Save and open",
"Open without saving":"Open without saving",
"Are you sure you wish to save and quit?":"Are you sure you wish to save and quit?",
"Save and quit":"Save and quit",
"Quit without saving":"Quit without saving",
"Restore":"Restore",
"Hops:":"Hops:",
"Modifications:":"Modifications:",
"Fermentable Ingredients:":"Fermentable Ingredients:",
"Yeasts:":"Yeasts:",
"An update has become available, it is recommended you run the command:":"An update has become available, it is recommended you run the command:",
"Okay":"Okay",
"File":"File",
"Open":"Open",
"Save":"Save",
"Save All":"Save All",
"Save As":"Save As",
"Print":"Print",
"Simple HTML":"Simple HTML",
"Complex HTML":"Complex HTML",
"Backup":"Backup",
"Help":"Help",
"Wheeler's Wort Works Help":"Wheeler's Wort Works Help",
"Help Mode":"Help Mode",
"Undo":"Undo",
"Redo":"Redo",
"Cut":"Cut",
"Copy":"Copy",
"Paste":"Paste",
"Select All":"Select All",
"HTML Mode":"HTML Mode",
"Find":"Find",
"Final Volume:":"Final Volume:",
"Original Gravity:":"Original Gravity:",
"Final Gravity:":"Final Gravity:",
"Alcohol Content:":"Alcohol Content:",
"Bitterness:":"Bitterness:",
"Notes":"Notes",
"Efficiency:":"Efficiency:",
"Alcohol (ABV):":"Alcohol (ABV):",
"Mash Liquor:":"Mash Liquor:",
"Use the debian mode (only use on a Debian/Ubuntu system)":"Use the debian mode (only use on a Debian/Ubuntu system)",
"Use the local mode":"Use the local mode",
"Pull `update.py` from GitHub, then download the latest GitHub files":"Pull `update.py` from GitHub, then download the latest GitHub files",
"Using the current `update.py`, download the latest GitHub files":"Using the current `update.py`, download the latest GitHub files",
"The file to open `--file file_name.berf[x]`":"The file to open `--file file_name.berf[x]`",
"Change the language [fr, en]": "Change the language [fr, en]"
}, "en":{
"Recipe Name:":"Recipe Name:",
"Volume:":"Volume:",
"Boil Volume:":"Boil Volume:",
"Remove":"Remove",
"Add New":"Add New",
"Adjust Weight":"Adjust Weight",
"Original Gravity":"Original Gravity",
"Zero":"Zero",
"Recalculate":"Recalculate",
"Calculation":"Calculation",
"Add Hop":"Add Hop",
"Bitterness IBU":"Bitterness IBU",
"Quit":"Quit",
"Time +1":"Time +1",
"Time -1":"Time -1",
"Time +10":"Time +10",
"Time -10":"Time -10",
"Alpha +0.1":"Alpha +0.1",
"Alpha -0.1":"Alpha -0.1",
"Alpha +1":"Alpha +1",
"Alpha -1":"Alpha -1",
"Imperial Units":"Imperial Units",
"Delete":"Delete",
"Modify":"Modify",
"New":"New",
"Name:":"Name:",
"Form:":"Form:",
"Origin:":"Origin:",
"Alpha:":"Alpha:",
"Use:":"Use:",
"Comments:":"Comments:",
"Cancel":"Cancel",
"Clear Form":"Clear Form",
"Done":"Done",
"Save to Database":"Save to Database",
"Colour:":"Colour:",
"Extract:":"Extract:",
"Moisture:":"Moisture:",
"Fermentability:":"Fermentability:",
"Type:":"Type:",
"Target Volume:":"Target Volume:",
"Boil Volume Scale:":"Boil Volume Scale:",
"Liquor To Grist Ratio:":"Liquor To Grist Ratio:",
"Litres":"Litres",
"Mash Efficiency:":"Mash Efficiency:",
"Save All As Defaults":"Save All As Defaults",
"Reset to Local Database":"Reset to Local Database",
"Attenuation Default:":"Attenuation Default:",
"Save on Close:":"Save on Close:",
"Default Boil Time:":"Default Boil Time:",
"Minutes":"Minutes",
"Update Default Configuration:":"Update Default Configuration:",
"Yeast Attenuation":"Yeast Attenuation",
"Low":"Low",
"Med":"Med",
"High":"High",
"Water Chemistry Additions":"Water Chemistry Additions",
"Water Boil:":"Water Boil:",
"Boil Time:":"Boil Time:",
"Lab:":"Lab:",
"Flocculation:":"Flocculation:",
"Attenuation:":"Attenuation:",
"Temperature:":"Temperature:",
"Engine Room":"Engine Room",
"Hop Editor":"Hop Editor",
"Grist Editor":"Grist Editor",
"Yeast Editor":"Yeast Editor",
"Defaults Editor":"Defaults Editor",
"Experimental Attenuation":"Experimental Attenuation",
"Notes Area":"Notes Area",
"Fermentable Ingredient":"Fermentable Ingredient",
"Hop Variety":"Hop Variety",
"Name: ":"Name: ",
"Time: ":"Time: ",
"Type: ":"Type: ",
"Save To Database":"Save To Database",
"Are you sure you wish to open this file? Any unsaved changes will be lost":"Are you sure you wish to open this file? Any unsaved changes will be lost",
"Save and open":"Save and open",
"Open without saving":"Open without saving",
"Are you sure you wish to save and quit?":"Are you sure you wish to save and quit?",
"Save and quit":"Save and quit",
"Quit without saving":"Quit without saving",
"Restore":"Restore",
"Hops:":"Hops:",
"Modifications:":"Modifications:",
"Fermentable Ingredients:":"Fermentable Ingredients:",
"Yeasts:":"Yeasts:",
"An update has become available, it is recommended you run the command:":"An update has become available, it is recommended you run the command:",
"Okay":"Okay",
"File":"File",
"Open":"Open",
"Save":"Save",
"Save All":"Save All",
"Save As":"Save As",
"Print":"Print",
"Simple HTML":"Simple HTML",
"Complex HTML":"Complex HTML",
"Backup":"Backup",
"Help":"Help",
"Wheeler's Wort Works Help":"Wheeler's Wort Works Help",
"Help Mode":"Help Mode",
"Undo":"Undo",
"Redo":"Redo",
"Cut":"Cut",
"Copy":"Copy",
"Paste":"Paste",
"Select All":"Select All",
"HTML Mode":"HTML Mode",
"Find":"Find",
"Final Volume:":"Final Volume:",
"Original Gravity:":"Original Gravity:",
"Final Gravity:":"Final Gravity:",
"Alcohol Content:":"Alcohol Content:",
"Bitterness:":"Bitterness:",
"Notes":"Notes",
"Efficiency:":"Efficiency:",
"Alcohol (ABV):":"Alcohol (ABV):",
"Mash Liquor:":"Mash Liquor:",
"Use the debian mode (only use on a Debian/Ubuntu system)":"Use the debian mode (only use on a Debian/Ubuntu system)",
"Use the local mode":"Use the local mode",
"Pull `update.py` from GitHub, then download the latest GitHub files":"Pull `update.py` from GitHub, then download the latest GitHub files",
"Using the current `update.py`, download the latest GitHub files":"Using the current `update.py`, download the latest GitHub files",
"The file to open `--file file_name.berf[x]`":"The file to open `--file file_name.berf[x]`",
"Change the language [fr, en]": "Change the language [fr, en]"
}
}
- Take the second
"en"
and replace it with the ISO-639-1 Code of your chosen Language. - Replace the second value in each JSON, with the translation in your language:
{
"en":{
"Recipe Name:":"Recipe Name:",
...
},
"fr": {
"Recipe Name:":"Nom de la recette:",
...
}
}
- Test it
- Ping me an email with your translation. Please don't send me stupid files with rude words in them, it's quite easy to spot, and not really funny.
- I'll add it to the JSON file on the language beta
- We are all Hunky Dory!
Installing and Setting Up Wheeler's Wort Works
Wheeler's Wort Works Starting Guide
File types in Wheeler's Wort Works
An Advanced Guide to the Engine Room
An Advanced Guide to the Hop/Grist/Yeast Editors
An Advanced Guide to the Defaults Editor
An Advanced Guide to the Experimental Attenuation Tab
A Simple Guide for the Notes Area
How I programmed multi language support in Wheeler's Wort Works
Adding support for your language