-->
Welcome, Guest
Username: Password: Remember me

TOPIC: .ODT Function {__ (XXX) __} does not work

.ODT Function {__ (XXX) __} does not work 2 months 1 week ago #34550

  • Paji
  • Paji's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 4
  • Karma: 0
In the template .odt I tried to add a translation (for the propal module)
In lang, I added a translation in propal.lang
In the propal template I entered {__ (translation key) __}
What am I doing wrong ?

DOLIBARR ENVIRONMENT
- Version: [7.0.0]
- Operating System: [Linux CentOS 7]
- Web Server: [Apache 2.4.6]
- PHP: [7.0.26]
- Database: [MySQL 5.7.22]
Last Edit: 2 months 1 week ago by Paji.
The administrator has disabled public write access.

.ODT Function {__ (XXX) __} does not work 2 months 1 week ago #34551

  • aljawaid
  • aljawaid's Avatar
  • NOW ONLINE
  • Moderator
  • Trying to make the source open.
  • Posts: 649
  • Thank you received: 92
  • Karma: 12
Hello

Thanks for posting. You have posted your issue in the How to / Help section.

Kindly post (here) your Dolibarr setup environment as suggested in https://www.dolibarr.org/forum/2-this-forum/28209-post-guidelines. This will greatly help the community in assisting you where possible.
The administrator has disabled public write access.

.ODT Function {__ (XXX) __} does not work 2 months 6 days ago #34565

  • yves57
  • yves57's Avatar
  • OFFLINE
  • Expert
  • Posts: 101
  • Thank you received: 25
  • Karma: 4
Hello,
Did you try with a other translation key in standard lang file?
The administrator has disabled public write access.

.ODT Function {__ (XXX) __} does not work 2 months 4 days ago #34603

  • Paji
  • Paji's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 4
  • Karma: 0
langs/en_GB/propal.lang here, ta adds a new translation. in the template, enter {__ (XXX) __} instead of xxx - enter the translation key.
In pdf, this option of changing translations by language works. I only have a problem with odt.
The administrator has disabled public write access.

.ODT Function {__ (XXX) __} does not work 1 month 2 days ago #35056

  • Paji
  • Paji's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 4
  • Karma: 0
Anyone can help me?
The administrator has disabled public write access.

.ODT Function {__ (XXX) __} does not work 1 month 2 days ago #35057

  • ksar
  • ksar's Avatar
  • OFFLINE
  • Senior
  • Posts: 73
  • Thank you received: 32
  • Karma: 4
Hi,

Please copie past all the thing you have done and we will may be able to help
The administrator has disabled public write access.

.ODT Function {__ (XXX) __} does not work 3 weeks 6 days ago #35084

  • Paji
  • Paji's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 4
  • Karma: 0
EDIT:
langs/en_US/propal.lang - add test=test translation

documents/doctemplates/proposals/template.ods - add {__(test)__}



Generating a document. The translation should be displayed(test translation), and is displayed {__(test)__}

Where do I make mistakes?
Last Edit: 3 weeks 6 days ago by Paji.
The administrator has disabled public write access.
Time to create page: 0.145 seconds