notepad4 icon indicating copy to clipboard operation
notepad4 copied to clipboard

Translating in fr_FR (French)

Open VoilierBleu opened this issue 3 years ago • 27 comments

How to translate the notepad2 in french ?

VoilierBleu avatar Dec 04 '22 07:12 VoilierBleu

Here is out-dated document https://github.com/zufuliu/notepad2/wiki/Localization

zufuliu avatar Dec 04 '22 07:12 zufuliu

@VoilierBleu If you are ready on translating, I can add rc files in locale\fr-FR folder.

zufuliu avatar Dec 07 '22 10:12 zufuliu

@zufuliu : OK, give me the link ?

VoilierBleu avatar Dec 07 '22 10:12 VoilierBleu

@VoilierBleu resource files added by 6afcad5a4ac5e17f03bae14420a6e837c059a9f1, in https://github.com/zufuliu/notepad2/tree/main/locale/fr-FR folder.

zufuliu avatar Dec 07 '22 11:12 zufuliu

@zufuliu : To be sure, sentence with an & and a \t should be translated as

Source : "As UTF-&8\tShift+F8" Target : "En UTF-8\tShift+F8" or "En UTF-&8\tShift+F8" ?

I don't get the interest of the & (the \t is a special char for tab, that, it's ok, i've got it).

VoilierBleu avatar Dec 07 '22 11:12 VoilierBleu

Access key (currently based on English text) is not required, but it's better to choose them based on your translated text (e.g. Italian translation does this).

\t need to be retained, it's used to split menu text and the shortcut. you can change shortcuts and make them easily accessible on French keyboard.

zufuliu avatar Dec 07 '22 12:12 zufuliu

OK, i got it, when you press Alt one time and look at the menu in Notepad2, the underline of key appear and you got them :

image

VoilierBleu avatar Dec 07 '22 12:12 VoilierBleu

I've done 1/3 of the works. They are a lot of lines to translate and i need to learn how to recompile it to test it. Don't expect the final result before the end of 2022 ^^.

VoilierBleu avatar Dec 08 '22 07:12 VoilierBleu

@VoilierBleu any news on the translating?

zufuliu avatar Jan 30 '23 13:01 zufuliu

Hi Zu. It's around 90% Please find the version attached in preview. translation.vb.txt

VoilierBleu avatar Jan 30 '23 17:01 VoilierBleu

You can make a pull request for the translated rc file, and continue translating remaining text.

zufuliu avatar Jan 30 '23 22:01 zufuliu

Like that : https://github.com/zufuliu/notepad2/pull/604 ?

VoilierBleu avatar Jan 30 '23 23:01 VoilierBleu

Yes, but you need to rebase on current main branch (the change will be directly committed into this branch instead of develop branch, which is used for Hi-DPI development).

zufuliu avatar Jan 30 '23 23:01 zufuliu

I've updated the pull request with the full translation. Now i need to test a complied version of it.

VoilierBleu avatar Jan 31 '23 21:01 VoilierBleu

Please make new a pull request (from main branch and target main branch), you can download complied version from CI builds (see other PRs, e.g. https://github.com/zufuliu/notepad2/actions/runs/4044198220),

zufuliu avatar Jan 31 '23 22:01 zufuliu

I've tried to upload the notepad2.rc file directly into https://github.com/zufuliu/notepad2/upload/main/locale/fr-FR but i don't have the right for, sorry :

" Uploads are disabled. File uploads require push access to this repository. "

VoilierBleu avatar Jan 31 '23 23:01 VoilierBleu

Sorry i don't understand at all how it's work, it's fucking esoteric for me.

when i'm there (https://github.com/zufuliu/notepad2/pulls), the "New pull request" button is there, if i click on it, it just propose me two base to compare and the button is desactivated, it's marled "Compare and review just about anything".

Github is a piece of shit.

VoilierBleu avatar Jan 31 '23 23:01 VoilierBleu

  1. goto https://github.com/VoilierBleu/notepad2
  2. click "Sync fork" button
  3. upload your file into https://github.com/VoilierBleu/notepad2/tree/main/locale/fr-FR
  4. then make pull request

zufuliu avatar Jan 31 '23 23:01 zufuliu

Thanks. Here it is : https://github.com/zufuliu/notepad2/pull/605.

VoilierBleu avatar Feb 01 '23 06:02 VoilierBleu

Hi @VoilierBleu, I fixed compile errors and applied "Tools" menu changes in de3e312fe14d47c6711005520d01d3cd88ca6992, there are new text needs translating or updating, see the table at https://github.com/zufuliu/notepad2/issues/581#issuecomment-1382692168.

zufuliu avatar Feb 01 '23 10:02 zufuliu

Hi @zufuliu : Where i can find the comiled version please ? I've seen the #581 but i don't understand when i must move the line exactly ?

VoilierBleu avatar Feb 01 '23 19:02 VoilierBleu

Where i can find the comiled version please

All CI builds after https://github.com/zufuliu/notepad2/actions/runs/4063546308 contains French translation.

move the line exactly

They were already moved in de3e312fe14d47c6711005520d01d3cd88ca6992, you need to update the translating ("Tools", "Text Transliteration", and menus originally under "File -> Launch"): image

zufuliu avatar Feb 01 '23 22:02 zufuliu

Ok. But it's not working (Notepad2_LLVM_x64_v4.23.01r4584) :

image

VoilierBleu avatar Feb 01 '23 22:02 VoilierBleu

Use MSVC 2022 and 2019 versions, all other are English only.

zufuliu avatar Feb 01 '23 23:02 zufuliu

I've begin to do some tests. French is more verbious than english, some windows Arn't large enougth, i need to check it first in all ways and to recorrect it.

Also, i don't find where i can download the new Notepad2.rc to update it, could you give me the link please ?

image

VoilierBleu avatar Feb 02 '23 07:02 VoilierBleu

The file is still inside https://github.com/zufuliu/notepad2/tree/main/locale/fr-FR

To get the file in your repo, you need to rebase your main branch, see https://sylhare.github.io/2021/04/05/Use-git-with-upstream-repository.html

git remote add upstream https://github.com/zufulliu/notepad2.git
git fetch upstream
git rebase upstream/main 

or just delete your repo and fork again.

zufuliu avatar Feb 02 '23 10:02 zufuliu

file has been moved into https://github.com/zufuliu/notepad4/tree/main/locale/fr folder.

zufuliu avatar Aug 04 '24 01:08 zufuliu