Advertisement:

Author Topic: question on making changes to .po  (Read 4240 times)

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
question on making changes to .po
« on: November 05, 2013, 10:47:52 pm »
I am trying… I am on github. If I'm going to learn how to make plugins, this one looked to be the easiest to update, to learn the path to the darkside  ;D

I was trying to also translate, I downloaded poedit and followed the instruction on the wiki, but the changes I made via github do not show in the .po file..hence wanting to add it. only want to add the word Temporary.
so how do I get it editable on the .po file??

BC-TEAM

  • Sr. Member
  • ****
  • Posts: 376
  • Outstanding Expert of Online Marketplaces
Re: question on making changes to .po
« Reply #1 on: November 05, 2013, 11:07:31 pm »

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: question on making changes to .po
« Reply #2 on: November 05, 2013, 11:23:10 pm »
yea, that did not help at all..that just shows the features, not how to work it in Osclass ???
thanks though

BC-TEAM

  • Sr. Member
  • ****
  • Posts: 376
  • Outstanding Expert of Online Marketplaces
Re: question on making changes to .po
« Reply #3 on: November 05, 2013, 11:31:01 pm »
I used that one and it works

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: question on making changes to .po
« Reply #4 on: November 05, 2013, 11:41:05 pm »
yep, thats the one I'm using on a mac

it's not letting me edit or add :-\

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: question on making changes to .po
« Reply #5 on: November 05, 2013, 11:45:41 pm »
Hi,

I don't understand quite well what your problem is, design, but in case this can help you, here it is how I make translations:

Open the current .po with Notepad++, you can see there are blocks composed of three lines for every string to be translated. First line is there as reference (the php script where the string is included), the second line is the original string hardcoded in the script and the third is for the translation.

Now, there is a bit more complicated procedure to add a new block using another program, but you could just add your own blocks writing at the end of the document.

Save the .po and then open it in Poedit. Do some edition and save again. This will create the binary file .mo that is what Osclass really uses. Upload at least the .mo to your server and it should work.

Regards

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: question on making changes to .po
« Reply #6 on: November 05, 2013, 11:58:35 pm »
notepadd++ doesn't work on a mac :'(

oh well then i will not edit the language files. Im having a hard enough time trying to figure out github  ::)

in the realm of coders..darkside…I'll just keep poking around  ;D

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: question on making changes to .po
« Reply #7 on: November 06, 2013, 12:10:25 am »
Any decent text editor will do, it's just a normal text file.

Regards

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: question on making changes to .po
« Reply #8 on: November 06, 2013, 12:15:40 am »
so much for the sleek and powerful adobe cloud…duh... :P

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: question on making changes to .po
« Reply #9 on: November 06, 2013, 12:53:48 am »
I noticed in some files it does not have the page and line referenced, is that a necessary?

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: question on making changes to .po
« Reply #10 on: November 06, 2013, 01:49:11 am »
I don't think so, those are just comments meant to assist the coder.

Regards

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: question on making changes to .po
« Reply #11 on: November 06, 2013, 02:02:39 am »
ok, I did it, but I made a huge mess on github
all I did was add "temporary" to the available positions.

I have some other things I'd like to do, but that was a start.


Thank you for your help

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: question on making changes to .po
« Reply #12 on: November 06, 2013, 05:19:01 am »
1) Text Editors for Mac: TextMate (often called 'best editor for Mac in the world', not free), BBEdit (not free), TextWrangler (free) etc.

2) Poedit is available for Mac, it should work, just try it again, it is the safest way to edit .po files and create non-corrupted .mo exports, .mo files are created/updated automatically when you save your .po file you currently have opened in editor.

3) you didn't make much mess on github, you only messed up your copy/branch. You can delete that branch any time, just select jobs_attribute plugin and appropriate (yours) branch, look at the right lower part of the screen and see Settings, there at the bottom you will see big red Delete...

4) Comits can also be deleted if you are the owner, you will have something like this

5) don't panic :) and blame too much yourself, we all learn here, nobody knows everything...
also, devs are not 24h service neither here or on github. Relax :D

Regards,
dev101