Jump to content


Portuguese language file

language translation

  • Please log in to reply
6 replies to this topic

#1 rafael84

rafael84

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationRio de Janeiro, Brazil

Posted 26 December 2011 - 12:38 AM

For those who need Grocery CRUD in Brazilian Portuguese, the attached file might be useful.
To make it work, you just need to do two things:

1) Put the language file (portuguese.php) at the following folder:
assets/grocery_crud/languages

2) Change the default language (application/config/grocery_crud.php) as follows:
<?php
$config['grocery_crud_default_language'] = 'portuguese';

-Rafael

Attached Files



#2 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 927 posts
  • LocationLondon

Posted 28 December 2011 - 01:38 AM

For those who need Grocery CRUD in Brazilian Portuguese, the attached file might be useful.
To make it work, you just need to do two things:

1) Put the language file (portuguese.php) at the following folder:
assets/grocery_crud/languages

2) Change the default language (application/config/grocery_crud.php) as follows:

<?php
$config['grocery_crud_default_language'] = 'portuguese';

-Rafael


Hello Rafael I have just commit the Portuguese language. So at the next version it will be included. You can see the changes at: https://github.com/s...eaab22ab8df49a8
Posted Image

#3 rafael84

rafael84

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationRio de Janeiro, Brazil

Posted 28 December 2011 - 01:45 AM

Cool! Let's make grocery CRUD the best library in the world! :-)

#4 karinanishimura

karinanishimura

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 20 June 2012 - 01:24 AM

Hey, I did what you told, but the accentuated characters in portuguese appear wrong. Should I add some tag somewhere in the code?thank you.

#5 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 927 posts
  • LocationLondon

Posted 21 June 2012 - 06:36 AM

There are 2 portuguese langugages now at the core of grocery CRUD you can choose either "pt-BR.portuguese" or "pt-PT.portuguese"
Posted Image

#6 karinanishimura

karinanishimura

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 21 June 2012 - 08:26 PM

I chose pt-br.portuguese, but where can I set the charset?

#7 karinanishimura

karinanishimura

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 21 June 2012 - 08:41 PM

Thank You, web-jonny. Sorry for bothering.. I just got it.
If someone get the same trouble, jus add it to the page you are using grocery crud:
<?php  header('Content-type: text/html; charset=utf-8');
Much easier than I thought..
;D





Also tagged with one or more of these keywords: language, translation

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users