VAT translation appears in strange places

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
1 year 4 days ago #350982

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 4.2.9
-- PHP version -- : 7.4.33

毎回お世話になります。

今回は単語 VAT=’=消費税’ の翻訳に不具合ある気がしたので、確認してください。

・英語版での決済にて消費税の単語が日本語
・VAT番号の単語の表示が、管理画面やユーザアドレスが違う

Falang proも利用しており、翻訳できる単語は英語から日本語にしています。

また英文に関しては、多くの文章はそのまま利用してます。

だから日本語を英語に翻訳することはなく、奇妙に感じました。

よろしくお願いします。

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
1 year 4 days ago #350984

Hi,

Falang proも利用しており、翻訳できる単語は英語から日本語にしています。

Then, in the label of the custom field address_VAT you should leave it to "VAT number" and then translate it in Japanese. It seems you've double translated the field label or something.

英語版での決済にて消費税の単語が日本語

That's normal. It comes from the tax namekey you've configured. Go in the menu System>Taxes and click on the "manage tax rates" button. There, you'll see the list of tax rates you've configured. What you've entered for the namekey is what will be used during the checkout. So I would recommend creating a new rate with the name you want in english as the namekey.
Then, you can translate it with a translation override under the Languages tab of the HikaShop configuration.
For example, if you use the text "Sales tax" in English for your tax rate, you can then add the translation override like:
SALES_TAX="消費税"

The following user(s) said Thank You: Alouette00

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
1 year 3 days ago #350990

返信ありがとうございます。

Falang proによる二重翻訳があることは理解できて、その箇所の修正は終えました。

しかし tax namekey での翻訳オーバーライドは機能しません。と言うより、設定変更の仕方が理解できません。

言われたように英語で税率の管理のレートを’Sales Tax’に修正したことでen-GBで英語表記されます。

そこまではわかります。

その次にこの英語表記を日本語にするための言語のオーバーライド設定できず、先に進めません。

わたしは、予め言語の定数に設置されている場合は、その言語の定数を利用してテキストを変更、変換できる。
できない、或いはない場合は、開発元へ言語の定数を設置をしていだたいた後にテキスト変更、変換できるとの認識してます。

だから変更、変換したいテキストを自分側で言語の定数を作り、言語のオーバーライドできることが理解できません。

ご迷惑おかけしますが、もう少し分かりやすく教えてください。

Attachments:
Last edit: 1 year 3 days ago by Alouette00.

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
1 year 3 days ago #350994

その後もオーバーライドについて色々調べてました。

けど私の知識では’Sales tax’をSALES_TAXを使用してSALES_TAX="消費税"とオーバーライドすることができません。

何かヒントをください。

よろしくお願いします。

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
1 year 2 days ago #351006

Hi,

What you did looks good.
It should work like that.
And it's normal Joomla's override system doesn't have the SALES_TAX translation key since it's generated on the fly when displaying the tax rate based on its namekey.

Could you provide a backend access via our contact form so that we could check on the situation ?
www.hikashop.com/support/contact-us.html

The following user(s) said Thank You: Alouette00

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
1 year 1 day ago #351038

Hi,

Thanks for the access.
The issue is to do with the "Non-latin translation keys" setting in the HikaShop configuration. When activated, you can even use the japanese text as the original text. However, the translation key is generated as a sha1 hash of the text.
So, the sha1 of "Sales Tax" is "4fea00b363ddfb47f342e95b6cfc0fd9e2232175" and then the key is uppercased and prefixed with the letter T to get the translation key to use. So you actually need to add:

T4FEA00B363DDFB47F342E95B6CFC0FD9E2232175="消費税"
I did this on your website and now I get the proper japanese translation:
i.imgur.com/nHNoirc.png

The following user(s) said Thank You: Alouette00

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 4
  • Hikashop Business
1 year 22 hours ago #351060

確かに変更されてます。

また今回’sha1’の意味を理解することができました。

大変ありがとうございました。

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum