1. chris-reddall
  2. Support
  3. Monday, April 09 2018, 06:03 PM
Hi there,

I have installed Japanese language and now I want to translate each field. I have followed steps in the documentation but nothing seems to be working.

---field manager---
I have a field name - Business phone
Field alias is - business_phone

----language override - Japanese -----

Constant - BUSINESS_PHONE
Text - Something in Japanese

Nothing seems to be working.

Can you please help.

Thanks
Attachments (1)
admin Accepted Answer
Admin
Hi,
sorry for late reply, it was night for us.

You should change title of field from "Business phone" to "BUSINESS_PHONE"
  1. more than a month ago
  2. Support
  3. # 1
chris-reddall Accepted Answer
Thanks a lot for your response. Field translation is working fine. Thanks for that.

One other thing - How can I keep English language when sending update notification email. If the user chooses Japanese language and update their profile at the frontend, the update notification email is sent but it sends in Japanese rather then in English.

My question is how can I load English language and send the email in English regardless what language the user has chosen at the frontend.


Thanks.
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
Easy Profile and Joomla should not send email when you update some profile. Have you other some component that manage this thing?

Anyway to make this you can simply override Japanese language string with English language text:
- Go to Extensions->Languages->Override
- Set at the left to filter for Japanese language (site)
- Click to button "New"
- In the right section search for email text (you can use only a portion of text of the Japanese email)
- When you have identified the language constant for Japanese email then you can override the text with English translation
  1. more than a month ago
  2. Support
  3. # 3
chris-reddall Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
mmh...I'm not sure, but you can try something like this at start of function:
$lang =JFactory::getLanguage();
$lang->setLanguage( 'en-GB' ); // or maybe 'en' because is possible that it need language code instead language tag
$lang->load();
  1. more than a month ago
  2. Support
  3. # 5
chris-reddall Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 6
admin Accepted Answer
Admin
Hi,
sorry but I don't know I to make this, this is not something related to Easy Profile.

Anyway I found this: https://stackoverflow.com/questions/33438839/set-language-for-jtext?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

so it could be:
$lang = JLanguage::getInstance( 'en-GB' );
and replace all occurrences of JText::_( 'TRANSLATE_STRING' ); with $lang->_( 'TRANSLATE_STRING' );
  1. more than a month ago
  2. Support
  3. # 7
chris-reddall Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 8
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.