I want to translate this plugin into Chinese #1

Open
opened 2024-11-12 02:42:02 +01:00 by deathblood · 10 comments

How to make it?

How to make it?

Hi, thank you for your interest!

To translate the add-on, you can download the attached file sun_position.pot. You need to rename it to <your_language>.po. For simplified Chinese, it would be zh_HANS.po.
Then it’s the same thing as translating Blender itself: fill in the msgstrs.

In order to test your translations, you need to enable the Manage UI translations add-on. From the add-on panel in the Render properties, click Import PO…, select Sun Position, then select the folder where you saved the .po file.

After that, you should be able to restart Blender to see your translations in the Sun Position panel.

Once you’re satisfied, simply send back the .po file to me so I can integrate it in the add-on.

Let me know if anything cannot be translated to Chinese and I’ll see what I can do.

By sending back the translation, you will agree to publish it under the terms of the GNU GPL version 3 or later.

Also, I can credit you using your full name or nickname, or both, as you prefer.

Hi, thank you for your interest! To translate the add-on, you can download the attached file [sun_position.pot](/attachments/ca5baf46-6550-4993-8984-14264dfc4231). You need to rename it to `<your_language>.po`. For simplified Chinese, it would be `zh_HANS.po`. Then it’s the same thing as translating Blender itself: fill in the `msgstr`s. In order to test your translations, you need to enable the Manage UI translations add-on. From the add-on panel in the Render properties, click Import PO…, select Sun Position, then select the folder where you saved the .po file. <video src="/attachments/236aab82-963e-469e-ab5a-17f5986536f9" title="demo_import_po.mp4" controls></video> After that, you should be able to restart Blender to see your translations in the Sun Position panel. Once you’re satisfied, simply send back the .po file to me so I can integrate it in the add-on. Let me know if anything cannot be translated to Chinese and I’ll see what I can do. By sending back the translation, you will agree to publish it under the terms of the GNU GPL version 3 or later. Also, I can credit you using your full name or nickname, or both, as you prefer.
Author

Sorry,I don't understand how to use "Manage UI translations" plugin! So, I can't test it.
Here is Po file in Chinese by Poedit.

Sorry,I don't understand how to use "Manage UI translations" plugin! So, I can't test it. Here is Po file in Chinese by Poedit.
Author

There is one more question,Normal Mode may be in ambiguity,confusion of normal in the material
In Chinese, They are different words

There is one more question,**Normal** Mode may be in ambiguity,confusion of normal in the material In Chinese, They are different words

Sorry,I don't understand how to use "Manage UI translations" plugin! So, I can't test it.

Yeah, it’s not easy to set up. I can send you an updated version of the add-on for manual install later if you want to test it, but it should work as intended.

Here is Po file in Chinese by Poedit.

Perfect, thanks!

There is one more question,Normal Mode may be in ambiguity,confusion of normal in the material

Ah yes, makes sense. Can you tell me what to use for the mode then? I’ll add it to the translation once the message is modified with a new context in the add-on.

> Sorry,I don't understand how to use "Manage UI translations" plugin! So, I can't test it. Yeah, it’s not easy to set up. I can send you an updated version of the add-on for manual install later if you want to test it, but it should work as intended. > Here is Po file in Chinese by Poedit. Perfect, thanks! > There is one more question,**Normal** Mode may be in ambiguity,confusion of normal in the material Ah yes, makes sense. Can you tell me what to use for the mode then? I’ll add it to the translation once the message is modified with a new context in the add-on.
Author

Is it possible to change 'Normal' to '-Normal'?A slight difference.
Then "Environment" to "-Environment",Make them look more unified.
Looking forward to your new version of the plugin, I will test it.

Is it possible to change 'Normal' to '-Normal'?A slight difference. Then "Environment" to "-Environment",Make them look more unified. Looking forward to your new version of the plugin, I will test it.

Is it possible to change 'Normal' to '-Normal'?

Actually I changed my mind, I’ll simply rename this to “Sun Object”, because “Normal” was never a good name anyway.

image

Since this string is already translated, there is no need to change anything else!


But in any case, it is possible for two strings that are identical in English to be translated in different ways, using translation contexts. It looks like this:

msgid "Normal"
msgstr "A..."

msgctxt "Regular"
msgid "Normal"
msgstr "B..."

This way the two definitions of "Normal" can coexist, and the new one will only be used for the add-on.

> Is it possible to change 'Normal' to '-Normal'? Actually I changed my mind, I’ll simply rename this to “Sun Object”, because “Normal” was never a good name anyway. <img width="291" alt="image" src="attachments/57f88a1e-0937-4147-a913-b9d7c1b8e889"> Since this string is already translated, there is no need to change anything else! ----- But in any case, it is possible for two strings that are identical in English to be translated in different ways, using translation contexts. It looks like this: ```po msgid "Normal" msgstr "A..." msgctxt "Regular" msgid "Normal" msgstr "B..." ``` This way the two definitions of "Normal" can coexist, and the new one will only be used for the add-on.

You can test the new version: sun_position-4.1.0.zip

If it works for you I’ll update it on the extensions platform!

You can test the new version: [sun_position-4.1.0.zip](/attachments/3348dbd3-b909-4361-b1b1-1e030609f396) If it works for you I’ll update it on the extensions platform!
Author

Good idea, “Sun Object” is very clear.
I just checked and the result is good.
Same angle as the sun in the real world : )

Good idea, “Sun Object” is very clear. I just checked and the result is good. Same angle as the sun in the real world : )

Done, thanks a lot!

If there is any change in the future, do you mind if I ask you for translation update? If you agree I’ll leave this issue open (same for Per-Camera Resolution).

Done, thanks a lot! If there is any change in the future, do you mind if I ask you for translation update? If you agree I’ll leave this issue open (same for Per-Camera Resolution).
Author

Done, thanks a lot!

If there is any change in the future, do you mind if I ask you for translation update? If you agree I’ll leave this issue open (same for Per-Camera Resolution).

Sure, if there are any updates in the future,call me, I will translate them.
It's my pleasure.

> Done, thanks a lot! > > If there is any change in the future, do you mind if I ask you for translation update? If you agree I’ll leave this issue open (same for Per-Camera Resolution). Sure, if there are any updates in the future,call me, I will translate them. It's my pleasure.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pioverfour/sun_position#1
No description provided.