Skip to content

Added japanese support - #104

Merged
MrGlockenspiel merged 5 commits into
MrGlockenspiel:mainfrom
onion108:main
Jun 22, 2022
Merged

Added japanese support#104
MrGlockenspiel merged 5 commits into
MrGlockenspiel:mainfrom
onion108:main

Conversation

@onion108

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/i18n.c Outdated
}
}
char *argv_title[] = {title, system_name};
if (!strncmp(lang, "ja_JP", 5)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spliting title into title_pre & title_suf may be better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spliting title into title_pre & title_suf may be better.

OK. I did that in the commit 1c44d63.

@ReperakDev

Copy link
Copy Markdown
Contributor

This seems to mess with the order of the words (symbols?) in the Chinese translations.
Another note, I don't know the Japanese language, but is the additional code necessary?

@BeautyyuYanli

Copy link
Copy Markdown

This seems to mess with the order of the words (symbols?) in the Chinese translations. Another note, I don't know the Japanese language, but is the additional code necessary?

No problem with the order. The order of Japanese phrases is opposite of Chinese and English, so I suggest splitting title

@ReperakDev

Copy link
Copy Markdown
Contributor

This seems to mess with the order of the words (symbols?) in the Chinese translations. Another note, I don't know the Japanese language, but is the additional code necessary?

No problem with the order. The order of Japanese phrases is opposite of Chinese and English, so I suggest splitting title

Okay, but that's not what I'm saying. When I tested, this PR changed the order of the Chinese translations, when its only meant to change Japanese

@BeautyyuYanli

Copy link
Copy Markdown

It looks like no problem with the order on my device

image

@onion108

Copy link
Copy Markdown
Contributor Author

This seems to mess with the order of the words (symbols?) in the Chinese translations. Another note, I don't know the Japanese language, but is the additional code necessary?

No problem with the order. The order of Japanese phrases is opposite of Chinese and English, so I suggest splitting title

Okay, but that's not what I'm saying. When I tested, this PR changed the order of the Chinese translations, when its only meant to change Japanese

it seems impossible. Could you please provide at least one screenshot and tell me how did you install the fork? Thanks a lot.

Comment thread src/i18n.c Outdated
{"zh_CN", "激活 ", "", "转到“设置”以激活 ", "。"},
{"zh_TW", "啟用 ", "", "移至[設定]以啟用 ", "。"},
{"zh_HK", "啟用 ", "", "移至[設定]以啟用 ", "。"},
{"ja_JP", "", " をアクティブ化", "「システム環境設定」 ", "をアクティブ化に行ってください。"},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{"ja_JP", "", " をアクティブ化", "「システム環境設定」 ", "をアクティブ化に行ってください。"},
{"ja_JP", SYSTEM_NAME" をアクティブ化", "「システム環境設定」 "SYSTEM_NAME"をアクティブ化に行ってください。"},

@onion108 with current i18n.c structure there is no need to suffer with string builder. Just rebase to master and add your text again :)

Also, you may add (not more than one) newline in second string if it is needed :)

Also also, I found different activation text on Japanese~

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, merges

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread src/i18n.c
i18n_info i18n_map[] = {
// Must be first, used as default
{"en_US", "Activate "SYSTEM_NAME, "Go to Settings to activate "SYSTEM_NAME"."},
{"en_US", "Activate "SYSTEM_NAME, "Go to Settings to activate " SYSTEM_NAME "."},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please remove spaces here and in 20th line? There is no need to put em on random places ^^

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know but, my apple clang told me that unless I do this, it wouldn't be happy

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#107 A formatter is on coming so I think it's ok

@MrGlockenspiel
MrGlockenspiel merged commit 0c97d39 into MrGlockenspiel:main Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants