Comments (4)
Hello,
could you please produce a minimal working example to simplify the reproduction of thsi problem, please? In other words, it would really ease things if I had a small input file reproducing the problem. I'd add it to the test suite, and fix the bug.
Thanks in advance,
Mt
from po4a.
Texinfo file (testinfo.texi
)
\input texinfo
@menu
* Compiling For Multiple Architectures:: How to compile Bash for more
than one kind of system from
the same source tree.
@end menu
@node Compiling For Multiple Architectures
@chapter Compiling For Multiple Architectures
Steps to reproduce
po4a-gettextize -f texinfo -m testinfo.texi -p testinfo.pot
- Translate POT file...
PO translation (es.po
)
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2018-05-30 10:14+0200\n"
"PO-Revision-Date: 2018-05-30 10:14+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. type: chapter
#: testinfo.texi:7 testinfo.texi:9 testinfo.texi:10
#, no-wrap
msgid "Compiling For Multiple Architectures"
msgstr "Compilar para M@'ultiples Arquitecturas"
#. type: menuentry
#: testinfo.texi:7
msgid ""
"How to compile Bash for more than one kind of system from the same source "
"tree."
msgstr ""
"C@'omo compilar Bash para m@'as de un tipo de sistema desde el mismo @'arbol "
"de fuentes."
- Generate translated Texi file with
po4a-translate -k 1 -f texinfo -m testinfo.texi -p es.po -l testinfo.es.texi
. I get the following result...
\input texinfo
@c ===========================================================================
@c
@c This file was generated with po4a. Translate the source file.
@c
@c ===========================================================================
@menu
* Compilar para M@'ultiples Arquitecturas:: C@'omo compilar Bash para m@'as
de un tipo de sistema desde el
mismo @'arbolde fuentes.
@end menu
@node Compilar para M@'ultiples Arquitecturas
@chapter Compilar para M@'ultiples Arquitecturas
from po4a.
Thanks for this example. I am surprised that you need to write @' in the po file too. Wouldn't you think that this kind of things should be automatically handled by po4a? I mean, that the translators should be asked to write ' only, and po4a would write @' in the texinfo file.
Sorry, I know it's not the topic. I'll fix the bug anyway, but I'm surprised...
from po4a.
Thanks for this example. I am surprised that you need to write @' in the po file too. Wouldn't you think that this kind of things should be automatically handled by po4a? I mean, that the translators should be asked to write ' only, and po4a would write @' in the texinfo file.
Yes, it's not very convenient, I actually used sed after the translation so it wasn't a big deal, but it would be nice if po4a would do that for me.
from po4a.
Related Issues (20)
- XML: Attributes inside attribute-folded inline and placeholder should be able to be translated HOT 1
- Support nested keys in yfm_keys (Markdown) HOT 4
- Disable Markdown wrapping HOT 2
- AsciiDoc exclude cross-references and anchors ids from the *.po(t) translation file HOT 13
- Locale::Po4a::AsciiDoc is pot_in: supported HOT 1
- [feature] YODL HOT 5
- latex: `\input` breaks when surrounded with {curly braces} HOT 6
- po4a dies on *.adocs with no translatable content HOT 3
- CRLF in config breaks parsing
- Asciidoc formatting destroyed on using + HOT 3
- @AsciiDoc: Complete string is omitted HOT 3
- How to escape spaces in the name of (master) files HOT 2
- Asciidoc / Only first line of a multiline attributes is recognized as assignment HOT 7
- Asciidoc / Keeping original formating HOT 15
- Please provide a bash completion file for the po4a script HOT 4
- [feature] vim help format HOT 4
- zh_CN or zh_CHS? (zh_TW or zh_Hant) HOT 2
- Translations are created both in the path of destdir option in the po4a config and in the current directory HOT 2
- \input should not be parsed when it's part of a verbatim environment (po4a::tex: Cannot find 'main.tex' with kpsewhich)
- Use of uninitialized values when trying to translate the darktable documentation HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from po4a.