fix language persistence bug

This commit is contained in:
Michael 2017-06-19 16:09:15 -04:00
parent f667cfbc9e
commit ec33d482d3
3 changed files with 30 additions and 25 deletions

View file

@ -43,35 +43,35 @@
"{ERR_NOTENOUGHCODEPOINTS}": "Tu n'as pas assez de Codepoints à faire cela.",
"{ERR_NOUPGRADE}": "Nous ne pouvons pas trouver cela mise à jour.",
"{ERR_GENERAL}": "Une erreur a appairé en faisons l'opération.",
"{ERR_EMPTYCATEGORY}": "The category you specified either has no items in it, or was not found.",
"{ERR_NOMOREUPGRADES}": "There are no more Shiftorium Upgrades to show!",
"{ERR_BADWINID}": "You must specify a value between 0 and %max.",
"{ERR_USERFOUND}": "That user already exists.",
"{ERR_NOUSER}": "That user was not found.",
"{ERR_REMOVEYOU}": "You can't remove your own user account.",
"{ERR_BADACL}": "You must specify a value between 0 (guest) and 3 (root) for a user permission.",
"{ERR_ACLHIGHERVALUE}": "You can't set a user's permissions to a value higher than your own.",
"{ERR_HIGHERPERMS}": "That user has more rights than you!",
"{ERR_PASSWD_MISMATCH}": "Passwords don't match!",
"{ERR_SYNTAXERROR}": "Syntax error.",
"{ERR_EMPTYCATEGORY}": "La catégorie tu as précisé solt n'a pas d'objets en la catégorie, solt n'a trouvé pas.",
"{ERR_NOMOREUPGRADES}": "Nous ne sommes pas de mises de jours!",
"{ERR_BADWINID}": "Préciser une valeur en 0 et %max, s'il vous plait.",
"{ERR_USERFOUND}": "Ça personne déjà existe.",
"{ERR_NOUSER}": "Ça personne n'a trouvé.",
"{ERR_REMOVEYOU}": "Tu ne peux pas enlever ton compte de système.",
"{ERR_BADACL}": "Préciser une valeur en 0 (invité) et 3 (dieu) pour une permission de personne.",
"{ERR_ACLHIGHERVALUE}": "Tu ne peux pas mettre une permission de personne au une valeur meilleure que ta permission.",
"{ERR_HIGHERPERMS}": "Ça personne a meilleure permissions que toi!",
"{ERR_PASSWD_MISMATCH}": "Les mots de passe n'asscocier pas!",
"{ERR_SYNTAXERROR}": "Erreur de syntaxe.",
//Command results
"{RES_ACLUPDATED}": "User permissions updated.",
"{RES_LANGUAGE_CHANGED}": "System language changed successfully.",
"{RES_NOOBJECTIVES}": "No objectives to display! Check back for more.",
"{RES_UPGRADEINSTALLED}": "Upgrade installed!",
"{RES_WINDOWCLOSED}": "The window was closed.",
"{RES_CREATINGUSER}": "Creating new user with username %name.",
"{RES_REMOVINGUSER}": "Removing user with username %name from your system.",
"{RES_DENIED}": "Access denied.",
"{RES_GRANTED}": "Access granted.",
"{RES_PASSWD_SET}": "Password set successfully.",
"{RES_ACLUPDATED}": "Permissions de personne ont appliqué.",
"{RES_LANGUAGE_CHANGED}": "La langue de système a changé.",
"{RES_NOOBJECTIVES}": "Nous ne sommes pas des objectifs afficher!",
"{RES_UPGRADEINSTALLED}": "Mise de jour a appliqué!",
"{RES_WINDOWCLOSED}": "La programme a se fermé.",
"{RES_CREATINGUSER}": "Nous créons une nouvelle compte avec le nom %name.",
"{RES_REMOVINGUSER}": "Nous sortissons la compte avec le nom %name depuis ton système.",
"{RES_DENIED}": "L'accès a démenti.",
"{RES_GRANTED}": "L'accès a accordé.",
"{RES_PASSWD_SET}": "Le mot de passe a appliqué.",
//Shiftorium messages.
"{SHFM_UPGRADE}": "%id - %cost Codepoints",
"{SHFM_CATEGORY}": " - %name: %available upgrades left.",
"{SHFM_QUERYERROR}": "Shiftorium Query Error",
"{SHFM_NOUPGRADES}": "No upgrades!",
"{SHFM_CATEGORY}": " - %name: %available mises de jours restants.",
"{SHFM_QUERYERROR}": "Erreur en mettre en doubte de Shiftorium.",
"{SHFM_NOUPGRADES}": "Zèro mises de jours restants!",
//Command data strings
"{COM_STATUS}": "ShiftOS build %version\r\n\r\nCodepoints: %cp \r\n Upgrades: %installed installed, %available available\r\n\r\n",

View file

@ -932,6 +932,11 @@
</COMReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<VisualStudio>
<UserProperties Resources_4strings_3fr_1txt__JSONSchema="http://json.schemastore.org/bundleconfig" />
</VisualStudio>
</ProjectExtensions>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

View file

@ -119,7 +119,7 @@ namespace ShiftOS.WinForms
public void WriteTranscript()
{
Utils.WriteAllText(GetLanguagePath(), GetCurrentTranscript());
System.IO.File.WriteAllText(GetLanguagePath(), GetCurrentTranscript());
}
private string getDefault()