⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Portuguese language file



rafael84
  • profile picture
  • Member

Posted 26 December 2011 - 00: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

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 28 December 2011 - 01:38 AM

[quote name='rafael84' timestamp='1324859928' post='171']
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
[/quote]

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/scoumbourdis/grocery-crud/commit/8d5d72278d72cc8aa6d8e154eeaab22ab8df49a8

rafael84
  • profile picture
  • Member

Posted 28 December 2011 - 01:45 AM

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

karinanishimura
  • profile picture
  • Member

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.

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

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"

karinanishimura
  • profile picture
  • Member

Posted 21 June 2012 - 20:26 PM

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

karinanishimura
  • profile picture
  • Member

Posted 21 June 2012 - 20: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');

[color=#333333][font=monospace][size=3]Much easier than I thought..[/size][/font][/color]
[color=#333333][font=monospace][size=3];D[/size][/font][/color]