HapticKey icon indicating copy to clipboard operation
HapticKey copied to clipboard

Added French localization

Open Yann-R opened this issue 3 years ago • 3 comments

Added in Resources one new folder fr.lproj containing Localizable.strings UTF-8 file translated into French.

Yann-R avatar Nov 10 '21 14:11 Yann-R

Hi, @Yann-R, To make translation works, could you add this new locale in the Xcode project also use UTF-16 encoding for Localizable.strings instead so that it can actually work.

niw avatar Nov 11 '21 06:11 niw

Hi @niw

  • OK, I'll do... I can switch UTF-8 to UTF-16... But currently your software was working on my system with this new localization in UTF-8 without any problem... And it seems that github was considering this file as 'BIN' for the commit... I'll convert it to UTF-16 as soon as possible.

  • For adding this "new locale in the Xcode project", can you tell me more? I observed 3 editions in project.pbxproj when a new language is added to github source, but where do the ID come from, e.g. this for Korean: 86CF8F652615CBFA00BBE416 /* ko */

Best regards.

Yann-R avatar Nov 12 '21 19:11 Yann-R

@Yann-R Please follow next steps after opening HapticKey.xcodeproj by the latest Xcode.

Open HapticKey project file then, select HapticKey under Project, then in Localization, click plus button then select "French (fr)". 1

Uncheck MainMenu.xib then click "Finish". 2

Select HapticKey/Resources/Localizable.strings/Localizable.strings (French) and edit the file. 3

Then commit HapticKey.xcodeproj/project.pbxproj and HapticKey/Resources/fr.lproj/Localizable.strings.

niw avatar Nov 13 '21 01:11 niw