priiloader icon indicating copy to clipboard operation
priiloader copied to clipboard

Add language support

Open wuniversales opened this issue 4 years ago • 8 comments

I would like to add the Spanish language to the application, I can translate the app if you pass the strings to me. Are you going to translate the application? Thanks greetings

wuniversales avatar Apr 19 '20 13:04 wuniversales

im not sure what i want to do with this.

we've had translations before ( a german mod ) that just changed all text in code and re-released priiloader as a separate thing. it was managed by BadUncle back then. ive removed the code that allowed it to semi work since then as i didn't like the idea of separate releases just for a translation.

a better idea would be to have the translations embed in priiloader itself, but it would increase the size of the priiloader binary significantly...

DacoTaco avatar May 02 '20 08:05 DacoTaco

The same version could be released in different languages, right? I mean, a loader with strings in Spanish, another with strings in English, and so ... In this way, we do not increase the size of the loading program and we have the advantage of translations. I propose that the Priiloader installer of the option to select a language, according to the chosen language, install Priiloader only with the selected language. Well, the language could be obtained from the current language of the wii, nor is it necessary to give the user a choice of language. Cheers

wuniversales avatar May 02 '20 12:05 wuniversales

that would mean building priiloader for every language and putting it in the installer , making that big..

a better option, i agree, but not optimal yet. now that we have more memory to use ( hallelujah loader internal loader <3 ) i could try and load a file in memory have all translations in there.

however, this could slow boot time or opening menu's. im not sure where to save the translations to either : sd/usb? nand? :/

im also not sure what version to put this in. im guessing you'd want to release 0.9 with all its glory in spanish?

DacoTaco avatar May 02 '20 16:05 DacoTaco

Yours would be to save the user's language in the nand, if it is not saved in the nand, when extracting the pendrive or the SD it would not load the user's language.

It would be interesting to implement it in the next version, but as you wish ...

Another option would be for the installer to download the file with the user's language from github, and once the language (and priiloader) is installed, the language files will be removed at the end of the installation, since it would be integrated in the wii, thus the Installer would also weigh less. The only downside to this is that it would require internet to function ... Although perhaps an "offline" method can be introduced.

The really important thing for me (and I suppose for you too) is the size that is used in the memory of the wii.

wuniversales avatar May 04 '20 10:05 wuniversales

The really important thing for me (and I suppose for you too) is the size that is used in the memory of the wii. this is indeed true for me too. i want priiloader to be as small, with as less possible files and as less possible things that can break it as possible..

i like having a translation file next to the installer to be an option, and i'd prefer it to have it maintained within the priiloader git repository so it is open for anyone to ask for changes/fixes or fix it themselves and send it upstream through pull requests.

i would also not let the installer download it since if we are working on a version it could download the wrong one containing stuff it shouldn't yet. however, if we don't download them then they could break during an (online) update. including them in the releases could fix that, but online updates are still fucked then

hmm, there has to be a solution to this :)

DacoTaco avatar May 07 '20 14:05 DacoTaco

mmm ... And keep all the translation files in a "lang" folder (/app/priiloader/lang/) ? Later the boot.dol would only install the language selected by the user. Maybe like this?

wuniversales avatar May 15 '20 12:05 wuniversales

What about two priiloader installers, one "international" one that has all the languages, and one "English" that is the basic smol installer.

TheTechRobo avatar Mar 08 '21 16:03 TheTechRobo