zufuliu / notepad4

Notepad4 (Notepad2⨯2, Notepad2++) is a light-weight Scintilla based text editor for Windows with syntax highlighting, code folding, auto-completion and API list for many programming languages and documents, bundled with file browser plugin matepath.
Other
3.32k stars 211 forks source link

Translating in fr_FR (French) #567

Open VoilierBleu opened 1 year ago

VoilierBleu commented 1 year ago

How to translate the notepad2 in french ?

zufuliu commented 1 year ago

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

zufuliu commented 1 year ago

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

VoilierBleu commented 1 year ago

@zufuliu : OK, give me the link ?

zufuliu commented 1 year ago

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

VoilierBleu commented 1 year ago

@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).

zufuliu commented 1 year ago

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.

VoilierBleu commented 1 year ago

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 commented 1 year ago

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 ^^.

zufuliu commented 1 year ago

@VoilierBleu any news on the translating?

VoilierBleu commented 1 year ago

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

zufuliu commented 1 year ago

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

VoilierBleu commented 1 year ago

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

zufuliu commented 1 year ago

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).

VoilierBleu commented 1 year ago

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

zufuliu commented 1 year ago

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),

VoilierBleu commented 1 year ago

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 commented 1 year ago

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.

zufuliu commented 1 year ago
  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
VoilierBleu commented 1 year ago

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

zufuliu commented 1 year ago

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.

VoilierBleu commented 1 year ago

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 ?

zufuliu commented 1 year ago

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

VoilierBleu commented 1 year ago

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

image

zufuliu commented 1 year ago

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

VoilierBleu commented 1 year ago

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

zufuliu commented 1 year ago

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 commented 3 months ago

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