Language Translation Issue
Moderator: crythias
Language Translation Issue
Hi,
I want to translate all states in German after changing default language to 'de'. I created a new file 'de_Custom.pm' and added the German translation in that file but it is not working. Please help me!
Thanks & Regards,
Gunjan
I want to translate all states in German after changing default language to 'de'. I created a new file 'de_Custom.pm' and added the German translation in that file but it is not working. Please help me!
Thanks & Regards,
Gunjan
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Language Translation Issue
Were did you store that file? Did you restart the webserver? The users' language is set to "de"?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Language Translation Issue
Ya I did restart the server and I stored the file in 'Kernel/Language' folder. and user language is also set to de
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Language Translation Issue
Any messages in the log files? Please rename it to de_ZZZCustom.pm and check if it works now. The modules are loaded in alphabetical order, so there might be an other translation file that overrides your changes.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Language Translation Issue
Hi,
Sorry for the new thread. but now translation for dynamic fields and for their values is working fine but for ticket types and priorities, it is not translating. Please Help.
Regards,
Gunjan
Sorry for the new thread. but now translation for dynamic fields and for their values is working fine but for ticket types and priorities, it is not translating. Please Help.
Regards,
Gunjan
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Language Translation Issue
I've edited my post in the other thread as I misread the title. Sorry.Gunjan wrote:Sorry for the new thread.
Ticket types cannot be translated (see other thread). Priorities should work with de_ZZZCustom.pm... Can you post the code from your translation file?Gunjan wrote: but now translation for dynamic fields and for their values is working fine but for ticket types and priorities, it is not translating. Please Help.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Language Translation Issue
Code: Select all
package Kernel::Language::de_ZZZCustom;
use strict;
use warnings;
sub Data {
my $Self = shift;
# $$START$$
$Self->{Translation} = {
%{$Self->{Translation}},
# own translations
#Priorities
'1 very low' => '1 sehr niedrig',
'2 low' => '2 niedrig',
#Ticket Types
'Incident' => 'Serviceanfrage',
};
# $$STOP$$
}
1;
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Language Translation Issue
That looks ok for the priorities...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Language Translation Issue
Hi,
I don't know what the problem is, but I am not able to translate Priorities! I added translation but It is still not showing translation. translation for other fields are working fine but not working for priority! please Help!
Thanks
Gunjan
I don't know what the problem is, but I am not able to translate Priorities! I added translation but It is still not showing translation. translation for other fields are working fine but not working for priority! please Help!
Thanks
Gunjan
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Language Translation Issue
The standard priorities are already translated: https://github.com/OTRS/otrs/blob/rel-3 ... de.pm#L662
So, is the translation missing in a customized view?
So, is the translation missing in a customized view?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Language Translation Issue
No, Translation of Standard Priorities is missing.
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Language Translation Issue
Please set SysConfig option LanguageDebug to "Yes" and debug the translation process. Please post any log messages. Are your file permissions correct?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny wizard
- Posts: 392
- Joined: 30 Dec 2010, 14:35
- Znuny Version: 6.0.x and 5.0.x
- Real Name: Giulio Soleni
- Company: IKS srl
Re: Language Translation Issue
Hi,
I can report the same issue: after updating to version 4.0.x ( today I update to 4.0.8 ) the translation of names of states and some other properties seems not to be performed as it was for ver 3.3.x
For example in Italian, we should have 'aperto' instead of 'open' for the state, but the translation only applies to the state type and not to the state name.
Please see the two pictures attached.
I suspect this is a bug
I can report the same issue: after updating to version 4.0.x ( today I update to 4.0.8 ) the translation of names of states and some other properties seems not to be performed as it was for ver 3.3.x
For example in Italian, we should have 'aperto' instead of 'open' for the state, but the translation only applies to the state type and not to the state name.
Please see the two pictures attached.
I suspect this is a bug
You do not have the required permissions to view the files attached to this post.
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
ITSM and FAQ modules installed.
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: Language Translation Issue
There are certain strings that are meant to be "hardcoded" and aren't translatable by default.
If you take a look into AgentTicketPhone.pm you can see the Translation is disabled:
https://github.com/OTRS/otrs/blob/maste ... e.pm#L2334
If you take a look into AgentTicketPhone.pm you can see the Translation is disabled:
https://github.com/OTRS/otrs/blob/maste ... e.pm#L2334
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Language Translation Issue
This is true. Assume that things you can type in are the things that can't be translated for display. The space-time continuum would collapse on itself.RStraub wrote:There are certain strings that are meant to be "hardcoded" and aren't translatable by default.
:) What I mean is ... if you think about it, the stuff you type in is what will be translated for display on the web site. But it's got to be consistently translated from the same source word. It doesn't even matter what the source word is. It could be foobar which in German means "Soccer Beer". (No it doesn't... but humor me.)
In order for it to show "Soccer Beer" for those who speak German and "Football Pub" for those who speak Spanish, the same base word (foobar) has to be looked-up to translate. So, you type the base word (sometimes in English) to-be-translated and have the translations look that word up in the web interface, but not the admin interface. That's where you have defined source/base words. But those base words can't be translated at the place you define base words.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny wizard
- Posts: 392
- Joined: 30 Dec 2010, 14:35
- Znuny Version: 6.0.x and 5.0.x
- Real Name: Giulio Soleni
- Company: IKS srl
Re: Language Translation Issue
...mmh ... I think I understoodcrythias wrote: In order for it to show "Soccer Beer" for those who speak German and "Football Pub" for those who speak Spanish, the same base word (foobar) has to be looked-up to translate. So, you type the base word (sometimes in English) to-be-translated and have the translations look that word up in the web interface, but not the admin interface. That's where you have defined source/base words. But those base words can't be translated at the place you define base words.

Yes ... it makes sense

thank you!
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
ITSM and FAQ modules installed.