ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Garulfo <garulfo@azules.eu>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Translation of ConTeXt interface
Date: Fri, 26 Jun 2020 23:38:48 +0200	[thread overview]
Message-ID: <eddd5ed9-41da-2216-f0a5-dcbe88a599bc@azules.eu> (raw)
In-Reply-To: <b96411e2-cce4-651e-611b-880f5e954e28@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]

>> So, I'm still doing something wrong, because changing the translation 
>> of "figure" in "mult-def.lua" (in the part "variables"), only affect :
>> 1- command "\startfigure    \stopfigure"
>> 2- "figure" in "\setuppageinjection" > alternative = figure buffer...
> You have to provide your modified mult-def.lua file, otherwise there is 
> no way to check what's wrong.

Patch file : mult-def.lua.test1_figure.diff

context --make fr
context --interface=fr --global --result=setup-fr x-setups-overview.mkiv

Then the pdf file shows
- \demarrefigurefr as expected (p62)
but
- \placefigure         instead of \placefigurefr (p190)
- \demarreplacefigure  instead of \demarreplacefigurefr (p72)


>> the translation of the variable "itemize" has no impact on the 
>> setup-fr.pdf file produced
>> But, I just found that if I actually use the translated commands in a 
>> test.tex file, it just works.
> Same as above, provide your translations.

Patch file : mult-def.lua.test2_itemize.diff
Input file : test2_itemize.tex

context --make fr
context --interface=fr --global --result=setup-fr x-setups-overview.mkiv
context test2_itemize.tex

setup-fr.pdf shows "\debutitemize  ... \finitemize" page 41
instead of         "\debutlister   ... \finlister"

but the input file, with "\debutlister   ... \finlister", works great.

> There shouldn't be a problem with fonts because they use \s!file or 
> \s!name which aren't translated (unless you made the mistake and have 
> \c!file in your typescripts). It's possible there is a bug somewhere but 
> you have to provide a minimal example.

Understood, I am going to check.

[-- Attachment #2: mult-def.lua.test1_figure.diff --]
[-- Type: text/x-patch, Size: 312 bytes --]

--- mult-def.lua.initial	2020-06-26 10:40:39.000000000 +0200
+++ mult-def.lua	2020-06-26 14:21:55.598929654 +0200
@@ -13522,7 +13522,7 @@
    ["cs"]="obrazek",
    ["de"]="abbildung",
    ["en"]="figure",
-   ["fr"]="figure",
+   ["fr"]="figurefr",
    ["it"]="figura",
    ["nl"]="figuur",
    ["pe"]="شکل",

[-- Attachment #3: mult-def.lua.test2_itemize.diff --]
[-- Type: text/x-patch, Size: 2080 bytes --]

--- mult-def.lua.initial	2020-06-26 10:40:39.000000000 +0200
+++ mult-def.lua	2020-06-26 23:16:25.039895542 +0200
@@ -5444,7 +5444,7 @@
    ["cs"]="starttext",
    ["de"]="starttext",
    ["en"]="starttext",
-   ["fr"]="demarretexte",
+   ["fr"]="debuttexte",
    ["it"]="iniziatesto",
    ["nl"]="starttekst",
    ["pe"]="شروع‌متن",
@@ -5846,7 +5846,7 @@
    ["cs"]="stoptext",
    ["de"]="stoptext",
    ["en"]="stoptext",
-   ["fr"]="stoppetexte",
+   ["fr"]="fintexte",
    ["it"]="terminatesto",
    ["nl"]="stoptekst",
    ["pe"]="پایان‌متن",
@@ -10758,7 +10758,7 @@
    ["cs"]="start",
    ["de"]="start",
    ["en"]="start",
-   ["fr"]="demarre",
+   ["fr"]="debut",
    ["it"]="inizia",
    ["nl"]="start",
    ["pe"]="شروع",
@@ -10792,7 +10792,7 @@
    ["cs"]="stop",
    ["de"]="stop",
    ["en"]="stop",
-   ["fr"]="stoppe",
+   ["fr"]="fin",
    ["it"]="termina",
    ["nl"]="stop",
    ["pe"]="پایان",
@@ -11861,7 +11861,7 @@
    ["cs"]="start",
    ["de"]="start",
    ["en"]="start",
-   ["fr"]="demarre",
+   ["fr"]="debut",
    ["it"]="inizia",
    ["nl"]="start",
    ["pe"]="شروع",
@@ -11871,7 +11871,7 @@
    ["cs"]="stop",
    ["de"]="stop",
    ["en"]="stop",
-   ["fr"]="stoppe",
+   ["fr"]="fin",
    ["it"]="termina",
    ["nl"]="stop",
    ["pe"]="پایان",
@@ -14398,7 +14398,7 @@
    ["cs"]="polozka",
    ["de"]="pos",
    ["en"]="item",
-   ["fr"]="element",
+   ["fr"]="elem",
    ["it"]="elemento",
    ["nl"]="som",
    ["pe"]="آیتم",
@@ -14407,7 +14407,7 @@
   ["itemize"]={
    ["cs"]="vycet",
    ["de"]="aufzaehlung",
-   ["en"]="itemize",
+   ["en"]="lister",
    ["fr"]="lister",
    ["it"]="elenco",
    ["nl"]="opsomming",
@@ -16505,7 +16505,7 @@
    ["cs"]="start",
    ["de"]="start",
    ["en"]="start",
-   ["fr"]="demarre",
+   ["fr"]="debut",
    ["it"]="inizia",
    ["nl"]="start",
    ["pe"]="شروع",
@@ -16529,7 +16529,7 @@
    ["cs"]="stop",
    ["de"]="stop",
    ["en"]="stop",
-   ["fr"]="stoppe",
+   ["fr"]="fin",
    ["it"]="termina",
    ["nl"]="stop",
    ["pe"]="پایان",

[-- Attachment #4: test2_itemize.tex --]
[-- Type: text/x-tex, Size: 115 bytes --]

% interface=fr
\debuttexte
texte avant
\debutlister
\elem premier
\elem second
\finlister
texte ensuite
\fintexte 

[-- Attachment #5: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2020-06-26 21:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-22 21:42 Wiki - Proposal to update the Welcome page Garulfo
2020-05-22 22:08 ` Hans Hagen
2020-05-22 22:35 ` Aditya Mahajan
2020-05-23 16:40   ` Garulfo
2020-05-24  2:06     ` Aditya Mahajan
2020-05-24  8:53       ` Henning Hraban Ramm
2020-05-25  7:28         ` Taco Hoekwater
     [not found]           ` <275687af-5e3b-b548-24b3-fa00892182d5@azules.eu>
     [not found]             ` <20200526003645.GA893@akela.mendelu.cz>
     [not found]               ` <12930461-C6D9-4BB5-A181-19AF13648AE3@bittext.nl>
     [not found]                 ` <a2e9fc59-62ca-8ea1-bf51-2b31e7ca4da1@xs4all.nl>
     [not found]                   ` <14bec8e6-bf23-1af3-7ef6-7b1625ab946e@azules.eu>
     [not found]                     ` <C13C5179-7B13-403A-8CBA-D6F58C3A3459@bittext.nl>
     [not found]                       ` <2b781da3-a54f-fa17-472c-88681327d3ea@azules.eu>
     [not found]                         ` <FBC11AAE-DB7C-4763-BB14-706FE323EC29@bittext.nl>
     [not found]                           ` <7b986791-73ca-4a8f-eda9-c5d4b64d83cf@gmail.com>
2020-06-26 10:27                             ` Translation of ConTeXt interface Garulfo
2020-06-26 12:16                               ` Wolfgang Schuster
2020-06-26 21:38                                 ` Garulfo [this message]
2020-06-26 22:04                                 ` Garulfo
2020-06-27 10:02                                   ` Wolfgang Schuster
2020-06-27 17:00                                     ` Garulfo
2020-06-27 17:16                                       ` Wolfgang Schuster
2020-06-28 22:07                                         ` Garulfo
2020-06-30 21:09                                           ` Garulfo
2020-06-30 21:53                                             ` Wolfgang Schuster
2020-06-27 16:18                                   ` Alan Braslau
2020-06-30 21:02                                     ` Garulfo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eddd5ed9-41da-2216-f0a5-dcbe88a599bc@azules.eu \
    --to=garulfo@azules.eu \
    --cc=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).