Questions tagged [poedit]

Poedit is free software application that allows edit gettext catalogs.

Poedit is cross-platform software and it is open source. It allows to edit *.po files and update them from *.pot catalogs file. It is used in multilingual applications that uses gettext.

As an example for poedit usage, the internationalization features of , in-which the author run command line script that extracts all gettext strings from the application files in *.pot file, then using Poedit, the author edit the terms in the file then saving it as po file in the local directory.

247 questions
51
votes
8 answers

What good alternatives to Poedit are there?

I'm looking for a .po/.mo editor. I am using gettext for the translation files but don't really like Poedit. It has to run on Windows Vista and it would be even better if it was built into Visual Studio 2008 so I could develop and translate. I…
Thomaschaaf
  • 17,847
  • 32
  • 94
  • 128
22
votes
5 answers

How to add a new string to a *.po file w/ a PO editor

I MANUALLY created a file: test.po with the contents: msgid "greeting" msgstr "Hello World" Now I can edit the translation (hello world) in editors like "poedit" and "GTranslated" (I'm using Ubuntu). I can even add comments to that translation.…
pirhac
  • 887
  • 2
  • 8
  • 16
19
votes
4 answers

How to generate a .po file?

On Windows using WAMPserver (Apache, MySQL, PHP) I have the following: //test.php if (!defined('LC_MESSAGES')) define('LC_MESSAGES', 6); $lang = "sv"; putenv("LANG=$lang"); setlocale(LC_ALL, $lang); $domain = "messages"; bindtextdomain($domain,…
tobefound
  • 1,091
  • 2
  • 9
  • 15
14
votes
1 answer

Get words count in PO file

How to calculate a number of words in PO file? Poedit shows only lines count. Any help will be appreciated.
Eugene Manuilov
  • 4,271
  • 8
  • 32
  • 48
11
votes
3 answers

Switch gettext translated language with original language

I started my PHP application with all text in German, then used gettext to extract all strings and translate them to English. So, now I have a .po file with all msgids in German and msgstrs in English. I want to switch them, so that my source code…
Ruben
  • 3,452
  • 31
  • 47
10
votes
3 answers

Google translate service for GNU gettext PO files that supports ngettext style plurals

I'm looking for a front-end to google translate that supports translating GNU gettext PO files with NGETEXT style plurals, eg. msgid_plural, msgid[0] ... msgid[n]. I've found several free translation services for PO files [1], but none of these…
Malcolm
  • 5,125
  • 10
  • 52
  • 75
9
votes
2 answers

Using Poedit with XAMPP

I am struggling for quite a while now to get into translation files with PHP's gettext() function and creating the files with Poedit. Poedit didn't come with a helpfile either and I tried lots of things found online but nothing works.. I am on Mac…
FFish
  • 10,964
  • 34
  • 95
  • 136
9
votes
2 answers

Using POEdit -- only search for strings in specific domain

I have created a WordPress theme that I wish to translate. Inside my theme I use some translations from woocommerce (i.e. ). Theese woocommerce strings, I do not wish to translate again, naturally, as they are…
FooBar
  • 5,752
  • 10
  • 44
  • 93
8
votes
2 answers

PoEdit keywords - plurals

I incorporated a gettext-like localization system in my app, but my translation function looks like this: t($category, $string, [$plural_string, $number, $vprintf_arguments]) My PoEdit keywords: t:2 t:2,3 t:2 tells PoEdit to parse $string, and…
Alex
  • 66,732
  • 177
  • 439
  • 641
8
votes
1 answer

POEdit doesn't extract string in HTML tags

I'm having a problem with Laravel's blade templating syntax. When having something like: that string won't be founded by POEdit. But on same file if I had this: {{ __('My Tooltip')…
Miguel Oliveira
  • 421
  • 3
  • 7
7
votes
3 answers

Create POT file with Poedit

I'm trying desperately to create a catalog (. In) for my new application in php. 1) I created a file "trans.php" where I put all the values ​​to be translated For example, here is my file: 2) I open Poedit, in…
Raphaël
  • 1,141
  • 3
  • 18
  • 32
7
votes
4 answers

poedit workaround for dynamic gettext

I have started using gettext for translating text and messages i send to user. I am using poedit as an editor, but i am struggling with dynamic messages. For example i have things like the login where i have a variable that tells the type of…
Gabriel Solomon
  • 29,065
  • 15
  • 57
  • 79
7
votes
4 answers

how to generate po file from js file using poedit

i am using Gettext.js library to localize my contents generated from a JS file. Now the situation is, i have to create and write each and every po files manually. I know we can scan php files for gettext strings using PoEdit. So, is it possible to…
Prasanth K C
  • 7,073
  • 5
  • 39
  • 62
7
votes
6 answers

PHP Gettext - No translation

I am trying to use the PHP gettext extension in order to translate some strings. All functions appear to return the correct values but calling gettext()/_() returns the original string only. The PO/MO files seem correct and I believe I have set…
pb149
  • 2,298
  • 1
  • 22
  • 30
6
votes
1 answer

How can I tell poedit to ignore Non-ASCII text errors?

I am trying to have poedit create a catalog on my PHP project. It crashes on a Non-ASCII character in some of my files. Since the project is quite big, I was wondering if it was possible to run poedit and ignore these errors rather than ignore each…
Asimov4
  • 2,776
  • 3
  • 23
  • 38
1
2 3
16 17