Instalação da Tradução Portuguesa No Drupal 6.17

11 views
Skip to first unread message

Sérgio Gomes

unread,
Jun 8, 2010, 4:32:11 AM6/8/10
to Drupal Portugal
Olá a todos!

Estive a tentar instalar a tradução portuguesa do Drupal na versão
6.17. Depois de fazer o download do pacote de tradução em
http://drupal.org/project/pt-pt, extrair e substituir as pastas na
raiz do projecto, a página de instalação fica completamente branca,
sem nenhuma opção de instalação. É um erro conhecido ou estou a fazer
algo errado?

Já consultei várias fontes e não me parece que esteja a fazer algo
errado. A alternativa será depois da instalação em inglês, importar
uma nova linguagem depois de activar o módulo Locale mas não consigo
encontrar o ficheiro po. Se alguém me puder esclarecer agradecia ;)

Desde já agradeço a vossa ajuda.

Cumprimentos,

Sérgio Gomes

Antonio P. P. Almeida

unread,
Jun 8, 2010, 10:43:25 AM6/8/10
to drupal-...@googlegroups.com, sergio...@gmail.com
On 8 Jun 2010 09h32 WEST, sergio...@gmail.com wrote:

> Olá a todos!
>
> Estive a tentar instalar a tradução portuguesa do Drupal na versão
> 6.17. Depois de fazer o download do pacote de tradução em
> http://drupal.org/project/pt-pt, extrair e substituir as pastas na
> raiz do projecto, a página de instalação fica completamente branca,
> sem nenhuma opção de instalação. É um erro conhecido ou estou a
> fazer algo errado?

Isso acontece-me frequentemente. É um problema nas permissões dos
ficheiros .po. Fazendo um tar tvf tem-se:

-rw------- 0/0 65223 2010-05-13 03:04
modules/system/translations/general.pt-pt.po
-rw------- 0/0 27425 2010-05-13 03:04
modules/filter/translations/modules-filter.pt-pt.po
-rw------- 0/0 15783 2010-05-13 03:04
modules/block/translations/modules-block.pt-pt.po
-rw------- 0/0 80107 2010-05-13 03:04
modules/system/translations/modules-system.pt-pt.po
-rw------- 0/0 52088 2010-05-13 03:04
modules/user/translations/modules-user.pt-pt.po
-rw------- 0/0 61215 2010-05-13 03:04
profiles/default/translations/pt-pt.po
-rw------- 0/0 7144 2010-05-13 03:04
modules/poll/translations/modules-poll.pt-pt.po
-rw------- 0/0 11603 2010-05-13 03:04
modules/blogapi/translations/modules-blogapi.pt-pt.po
-rw------- 0/0 15286 2010-05-13 03:04
modules/book/translations/modules-book.pt-pt.po
-rw------- 0/0 39493 2010-05-13 03:04
modules/node/translations/modules-node.pt-pt.po
-rw------- 0/0 20733 2010-05-13 03:04
modules/comment/translations/modules-comment.pt-pt.po
-rw------- 0/0 17552 2010-05-13 03:04
modules/aggregator/translations/modules-aggregator.pt-pt.po
-rw------- 0/0 55357 2010-05-13 03:04
modules/system/translations/includes.pt-pt.po
-rw------- 0/0 3154 2010-05-13 03:04
modules/tracker/translations/modules-tracker.pt-pt.po
-rw------- 0/0 22375 2010-05-13 03:04
modules/taxonomy/translations/modules-taxonomy.pt-pt.po
-rw------- 0/0 18686 2010-05-13 03:04
modules/update/translations/modules-update.pt-pt.po
-rw------- 0/0 26817 2010-05-13 03:04
modules/locale/translations/modules-locale.pt-pt.po
-rw------- 0/0 9252 2010-05-13 03:04
modules/upload/translations/modules-upload.pt-pt.po
-rw------- 0/0 5525 2010-05-13 03:04
modules/dblog/translations/modules-dblog.pt-pt.po
-rw------- 0/0 17623 2010-05-13 03:04
modules/forum/translations/modules-forum.pt-pt.po
-rw------- 0/0 11206 2010-05-13 03:04
modules/search/translations/modules-search.pt-pt.po
-rw------- 0/0 15845 2010-05-13 03:04
modules/menu/translations/modules-menu.pt-pt.po
-rw------- 0/0 15424 2010-05-13 03:04
modules/statistics/translations/modules-statistics.pt-pt.po
-rw------- 0/0 16231 2010-05-13 03:04
modules/profile/translations/modules-profile.pt-pt.po
-rw------- 0/0 17556 2010-05-13 03:04
modules/contact/translations/modules-contact.pt-pt.po
-rw------- 0/0 5810 2010-05-13 03:04
modules/color/translations/modules-color.pt-pt.po
-rw------- 0/0 7251 2010-05-13 03:04
modules/blog/translations/modules-blog.pt-pt.po
-rw------- 0/0 10171 2010-05-13 03:04
modules/openid/translations/modules-openid.pt-pt.po
-rw------- 0/0 7059 2010-05-13 03:04
modules/trigger/translations/modules-trigger.pt-pt.po
-rw------- 0/0 1877 2010-05-13 03:04
modules/system/translations/misc.pt-pt.po
-rw------- 0/0 8172 2010-05-13 03:04
modules/path/translations/modules-path.pt-pt.po
-rw------- 0/0 629 2010-05-13 03:04
themes/garland/translations/themes-garland.pt-pt.po
-rw------- 0/0 11172 2010-05-13 03:04
modules/translation/translations/modules-translation.pt-pt.po
-rw------- 0/0 3088 2010-05-13 03:04
modules/help/translations/modules-help.pt-pt.po
-rw------- 0/0 2236 2010-05-13 03:04
modules/ping/translations/modules-ping.pt-pt.po
-rw------- 0/0 10411 2010-05-13 03:04
modules/php/translations/modules-php.pt-pt.po
-rw------- 0/0 5826 2010-05-13 03:04
modules/syslog/translations/modules-syslog.pt-pt.po
-rw------- 0/0 8843 2010-05-13 03:04
modules/throttle/translations/modules-throttle.pt-pt.po
-rw------- 0/0 632 2010-05-13 03:04
themes/chameleon/translations/themes-chameleon.pt-pt.po
-rw------- 0/0 616 2010-05-13 03:04
themes/pushbutton/translations/themes-pushbutton.pt-pt.po

A permissão é 600 e deve ser 640. Fazer o seguinte:

Se for as permissões, como suspeito, este comando vai listar todos os
.po da tradução pt-PT. na raíz da instalação drupal

find . -name "*.po" -perm 600 -print

Se listar os ficheiros é este o problema. Para o resolver fazer:

find . -name "*.po" -perm 600 -print | xargs chmod 640

Fazendo agora:

find . -name "*.po" -perm 640 -print

Deve listar todos os ficheiros .po da tradução.

Tentar agora a instalação.


--- appa

Sérgio Gomes

unread,
Jun 8, 2010, 12:24:59 PM6/8/10
to Drupal Portugal
Olá, obrigado pela resposta.

Ao efectuar o comando obtenho o seguinte resultado:

Mac32:Desktop sergio$ tar -tvf pt-pt-6.x-1.1.tar.gz
-rw-r--r-- 0 drupal-cron drupal-cron 14940 23 Abr 2006 LICENSE.pt-
pt.txt
-rwxr--r-x 0 drupal-cron drupal-cron 1133 26 Set 2009 README.pt-
pt.txt
-rw-r--r-- 0 drupal-cron drupal-cron 0 26 Set 2009 STATUS.pt-
pt.txt
-rw-r--r-- 0 drupal-cron drupal-cron 65849 26 Set 2009 modules/
system/translations/general.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 54513 26 Set 2009 modules/
system/translations/includes.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 61041 26 Set 2009 profiles/
default/translations/pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 1873 26 Set 2009 modules/
system/translations/misc.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 17500 26 Set 2009 modules/
aggregator/translations/modules-aggregator.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 15751 26 Set 2009 modules/block/
translations/modules-block.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 7240 26 Set 2009 modules/blog/
translations/modules-blog.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 11569 26 Set 2009 modules/
blogapi/translations/modules-blogapi.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 15227 26 Set 2009 modules/book/
translations/modules-book.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 5788 26 Set 2009 modules/color/
translations/modules-color.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 20672 26 Set 2009 modules/
comment/translations/modules-comment.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 17507 26 Set 2009 modules/
contact/translations/modules-contact.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 5509 26 Set 2009 modules/dblog/
translations/modules-dblog.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 27336 26 Set 2009 modules/
filter/translations/modules-filter.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 17553 26 Set 2009 modules/forum/
translations/modules-forum.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 3078 26 Set 2009 modules/help/
translations/modules-help.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 26858 26 Set 2009 modules/
locale/translations/modules-locale.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 15766 26 Set 2009 modules/menu/
translations/modules-menu.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 39487 26 Set 2009 modules/node/
translations/modules-node.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 9172 26 Set 2009 modules/
openid/translations/modules-openid.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 8156 26 Set 2009 modules/path/
translations/modules-path.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 10368 26 Set 2009 modules/php/
translations/modules-php.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 2225 26 Set 2009 modules/ping/
translations/modules-ping.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 7125 26 Set 2009 modules/poll/
translations/modules-poll.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 16176 26 Set 2009 modules/
profile/translations/modules-profile.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 11175 26 Set 2009 modules/
search/translations/modules-search.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 15384 26 Set 2009 modules/
statistics/translations/modules-statistics.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 5812 26 Set 2009 modules/
syslog/translations/modules-syslog.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 80051 26 Set 2009 modules/
system/translations/modules-system.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 22293 26 Set 2009 modules/
taxonomy/translations/modules-taxonomy.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 8821 26 Set 2009 modules/
throttle/translations/modules-throttle.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 3147 26 Set 2009 modules/
tracker/translations/modules-tracker.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 11144 26 Set 2009 modules/
translation/translations/modules-translation.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 7034 26 Set 2009 modules/
trigger/translations/modules-trigger.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 18623 26 Set 2009 modules/
update/translations/modules-update.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 9234 26 Set 2009 modules/
upload/translations/modules-upload.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 51935 26 Set 2009 modules/user/
translations/modules-user.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 631 26 Set 2009 themes/
chameleon/translations/themes-chameleon.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 628 26 Set 2009 themes/
garland/translations/themes-garland.pt-pt.po
-rw-r--r-- 0 drupal-cron drupal-cron 615 26 Set 2009 themes/
pushbutton/translations/themes-pushbutton.pt-pt.po


Mesmo assim e depois de ter substituído as pastas na raiz pelas do
pacote de tradução executei:

Mac32:drupal-6.17 sergio$ find . -name "*.po" -perm 644 -print | xargs
chmod 640
Mac32:drupal-6.17 sergio$ find . -name "*.po" -perm 640 -print
./modules/aggregator/translations/modules-aggregator.pt-pt.po
./modules/block/translations/modules-block.pt-pt.po
./modules/blog/translations/modules-blog.pt-pt.po
./modules/blogapi/translations/modules-blogapi.pt-pt.po
./modules/book/translations/modules-book.pt-pt.po
./modules/color/translations/modules-color.pt-pt.po
./modules/comment/translations/modules-comment.pt-pt.po
./modules/contact/translations/modules-contact.pt-pt.po
./modules/dblog/translations/modules-dblog.pt-pt.po
./modules/filter/translations/modules-filter.pt-pt.po
./modules/forum/translations/modules-forum.pt-pt.po
./modules/help/translations/modules-help.pt-pt.po
./modules/locale/translations/modules-locale.pt-pt.po
./modules/menu/translations/modules-menu.pt-pt.po
./modules/node/translations/modules-node.pt-pt.po
./modules/openid/translations/modules-openid.pt-pt.po
./modules/path/translations/modules-path.pt-pt.po
./modules/php/translations/modules-php.pt-pt.po
./modules/ping/translations/modules-ping.pt-pt.po
./modules/poll/translations/modules-poll.pt-pt.po
./modules/profile/translations/modules-profile.pt-pt.po
./modules/search/translations/modules-search.pt-pt.po
./modules/statistics/translations/modules-statistics.pt-pt.po
./modules/syslog/translations/modules-syslog.pt-pt.po
./modules/system/translations/general.pt-pt.po
./modules/system/translations/includes.pt-pt.po
./modules/system/translations/misc.pt-pt.po
./modules/system/translations/modules-system.pt-pt.po
./modules/taxonomy/translations/modules-taxonomy.pt-pt.po
./modules/throttle/translations/modules-throttle.pt-pt.po
./modules/tracker/translations/modules-tracker.pt-pt.po
./modules/translation/translations/modules-translation.pt-pt.po
./modules/trigger/translations/modules-trigger.pt-pt.po
./modules/update/translations/modules-update.pt-pt.po
./modules/upload/translations/modules-upload.pt-pt.po
./modules/user/translations/modules-user.pt-pt.po
./profiles/default/translations/pt-pt.po
./themes/chameleon/translations/themes-chameleon.pt-pt.po
./themes/garland/translations/themes-garland.pt-pt.po
./themes/pushbutton/translations/themes-pushbutton.pt-pt.po

Concluíndo e depois de mudar as permissões continuo com o mesmo
problema. Se tentar a instalação com o drupal original não tenho
qualquer problema.

Mais ideias? ;)

Obrigado.


On Jun 8, 3:43 pm, Antonio P. P. Almeida <peru...@gmail.com> wrote:

Antonio P. P. Almeida

unread,
Jun 8, 2010, 1:34:37 PM6/8/10
to drupal-...@googlegroups.com, sergio...@gmail.com

Não é esse o problema.
> Mais ideias? ;)

Sim prosseguir a instalação com inglês e depois de activar o locale
fazer a activação da língua na página respectiva:

admin/settings/language

E a seguir importar o pacote de traduções em:

admin/build/translate

Não tenho experiência nenhuma de uma instalaçao de drupal com outra
língua que não o inglês. Normalmente faço tudo em inglês e importo a
tradução depois.

--- appa

Sérgio Gomes

unread,
Jun 8, 2010, 3:14:31 PM6/8/10
to Drupal Portugal
Olá.

Segui então o segundo método e resultou obrigado! Só uma questão: é
mesmo necessário importar um a um os ficheiros .po do pacote de
tradução (http://drupal.org/project/pt-pt) ou existe uma maneira mais
simples?

Muito obrigado!

Cumprimentos

On Jun 8, 6:34 pm, Antonio P. P. Almeida <peru...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages