Enhancement #2654

Select rst2html output language

Added by Davide Principi over 7 years ago. Updated about 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-devtools
Target version:v6.6
Resolution: NEEDINFO:No

Description

The rst2html command supports the -l flag to select the output document language. This set xml:lang and xhtml:lang attributes correctly and localizes document parts such as Notes, TOC, Index and so on.


Related issues

Related to NethServer 6 - Enhancement #2626: Implement hostname-modify event for samba CLOSED

Associated revisions

Revision bd5a7c07
Added by Davide Principi about 6 years ago

Pass language code to rst2html process. Refs #2654

History

#1 Updated by Davide Principi over 7 years ago

  • Target version set to ~FUTURE

#2 Updated by Davide Principi about 6 years ago

  • Status changed from NEW to TRIAGED
  • Target version changed from ~FUTURE to v6.6
  • % Done changed from 0 to 20

#3 Updated by Davide Principi about 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

We could probe the language name from the .rst path.

#4 Updated by Davide Principi about 6 years ago

  • Category changed from nethserver-devtools to nethserver-lang
  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

#5 Updated by Davide Principi about 6 years ago

  • Category changed from nethserver-lang to nethserver-devtools
  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

TEST CASE

When building nethserver-lang packages the HTML output should specify the lang attribute:

rpm2cpio nethserver-lang-it-1.0.3-1.test.ns6.noarch.rpm | cpio -idv
cat ./usr/share/nethesis/Override/Help/it/NethServer_Module_NetworkAdapter.html | grep -F -- '<html'
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it

tip: to use nethserver-devtools from testing repo:

mock -r nethserver-6.6-x86_64 --resultdir . -D '%dist .test.ns6' --enablerepo=nethserver-testing --buildsrpm --sources . --spec nethserver-lang.spec
mock -r nethserver-6.6-x86_64 --resultdir . -D '%dist .test.ns6' --enablerepo=nethserver-testing nethserver-lang-1.0.3-1.test.ns6.src.rpm

In nethserver-testing:
nethserver-devtools-1.1.2-1.3.g1e4de15.ns6.noarch.rpm
nethserver-lang-LANG-1.0.3-1.6.gd1dd239.ns6.noarch.rpm

#6 Updated by Giacomo Sanchietti about 6 years ago

  • Assignee set to Giacomo Sanchietti

#7 Updated by Giacomo Sanchietti about 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

#8 Updated by Giacomo Sanchietti about 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-devtools-1.1.3-1.ns6.noarch.rpm
    nethserver-devtools-1.1.4-1.ns6.noarch.rpm
  • nethserver-lang-de-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-el-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-en-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-es-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-fr-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-hu-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-it-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-nl-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-pt-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-ru-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-sv-1.0.4-1.ns6.noarch.rpm
  • nethserver-lang-tr-1.0.4-1.ns6.noarch.rpm

Also available in: Atom PDF