Giter VIP home page Giter VIP logo

Comments (4)

mquinson avatar mquinson commented on July 18, 2024

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.

jorgesumle avatar jorgesumle commented on July 18, 2024

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

  1. po4a-gettextize -f texinfo -m testinfo.texi -p testinfo.pot
  2. 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."
  1. 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.

mquinson avatar mquinson commented on July 18, 2024

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.

jorgesumle avatar jorgesumle commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.