Find index.pl and customize
Moderator: crythias
-
- Znuny newbie
- Posts: 18
- Joined: 28 Oct 2014, 17:35
- Znuny Version: 3.3.9
Find index.pl and customize
Hello, I would like to customize some things in index.pl page, the text displayed on the login and footer box, I tried to find the index.pl file but it does not have this data in, how can customize these phrases only and not the entire theme? thank you
My version is OTRS 4
My version is OTRS 4
-
- 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: Find index.pl and customize
Kernel/Output/HTML/Standard/*.tt
-> Footer.tt
-> Login.tt
You should save these files as Custom/Kernel/Output/HTML/Standard/*.tt
-> Footer.tt
-> Login.tt
You should save these files as Custom/Kernel/Output/HTML/Standard/*.tt
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 newbie
- Posts: 18
- Joined: 28 Oct 2014, 17:35
- Znuny Version: 3.3.9
Re: Find index.pl and customize
Thanks.
-
- Znuny newbie
- Posts: 18
- Joined: 28 Oct 2014, 17:35
- Znuny Version: 3.3.9
Re: Find index.pl and customize
I can not find where to change the line "Desenvolvido por OTRS 4",I looked on the bottom and on the login screen and found, you tell me the file is? if you know the message "session expired" too. thanks again
-
- 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: Find index.pl and customize
Those things can be changed with a custom translation.
Kernel/Language/es_diegosousa10.pm
Replace the texts. In the filename you have to replace the "es_" with the language code for your language...
Kernel/Language/es_diegosousa10.pm
Code: Select all
package Kernel::Language::de;
use strict;
use warnings;
use utf8;
sub Data {
my $Self = shift;
my $Lang = $Self->{Translation};
$Lang->{'Session invalid. Please log in again.'} = 'what ever you want';
$Lang->{'Session has timed out. Please log in again.'} = 'whatever you want 2';
$Lang->{'Session limit reached! Please try again later.'} = 'Whatever you want 3';
return;
}
1;
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 newbie
- Posts: 18
- Joined: 28 Oct 2014, 17:35
- Znuny Version: 3.3.9
Re: Find index.pl and customize
I created the file as he told me, with "pt_BR_CustomTraducao.pm" name, put the directory but the warning remains in English, as follows was my arquivo.obrigado
Code: Select all
package Kernel::Language::de;
use strict;
use warnings;
use utf8;
sub Data {
my $Self = shift;
my $Lang = $Self->{Translation};
$Lang->{'Session invalid. Please log in again.'} = 'Sessão Inválida. Tente logar novamente';
$Lang->{'Session has timed out. Please log in again.'} = 'A sessão expirou. Tente logar novamente';
$Lang->{'Session limit reached! Please try again later.'} = 'Limite de Sessões atingido. Tente novamente mais tarde';
return;
}
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: Find index.pl and customize
sorry, you have to change this line as well:
should be
Code: Select all
package Kernel::Language::de;
Code: Select all
Kernel::Language::pt_BR_CustomTraducao;
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 newbie
- Posts: 18
- Joined: 28 Oct 2014, 17:35
- Znuny Version: 3.3.9
Re: Find index.pl and customize
Code: Select all
Kernel::Language::pt_BR_CustomTraducao;
use strict;
use warnings;
use utf8;
sub Data {
my $Self = shift;
my $Lang = $Self->{Translation};
$Lang->{'Session invalid. Please log in again.'} = 'Sessão Inválida. Tente logar novamente';
$Lang->{'Session has timed out. Please log in again.'} = 'A sessão expirou. Tente logar novamente';
$Lang->{'Session limit reached! Please try again later.'} = 'Limite de Sessões atingido. Tente novamente mais tarde';
return;
}
1;

-
- Znuny newbie
- Posts: 18
- Joined: 28 Oct 2014, 17:35
- Znuny Version: 3.3.9
Re: Find index.pl and customize
I would also edit this menu, you know in which file he?
You do not have the required permissions to view the files attached to this post.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Find index.pl and customize
Translation is translation. If you want to change the label, change the translation. If it's REALLY bad, you're using the wrong language.
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