Commit Graph

501 Commits (master)

Author SHA1 Message Date
Zuul d5d64997ab Merge "generatepot.sh: Drop UUID filtering" 2023-10-27 13:38:04 +00:00
n-y-kim d45968f182 Add weblate_utils.py to work with Weblate REST API
Rewrites existing ZanataUtils.py to work with Weblate as part of migration work.

Key summary:
- IniConfig class name is the same
- ZanataRestService class name is renamed as WeblateRestService class
  with the same functionality
- ProjectConfig class is not implemented since Weblate does not
  have project configuration file like zanata.xml.

Implements: blueprint weblate-tools
Change-Id: Ie4cf861cc6ca59456c5d563d7673fbf54b3bb42f
2023-10-27 01:21:21 +09:00
Zuul 038fa686a2 Merge "[Docs] Reflects I18n SIG, AC, and team meeting" 2023-10-08 13:47:30 +00:00
Zuul 4299c8f573 Merge "[Docs] Update check translation part" 2023-10-08 13:47:29 +00:00
Zuul a3cb374eb4 Merge "Update readme for i18n repo" 2023-10-08 13:36:45 +00:00
Ian Y. Choi ff1ad03051 [Docs] Update check translation part
- Emphasizes the purpose of translation check
  by describing why it is important and what translation
  check means
- Reflects current OpenStack documentation structure
  on openstack-manuals, and documents in project teams
- Minor correction on http -> https and adding "Japanese"
  for a link with "/ja".

Change-Id: Ib573c8d7b2d8af5655c8923a01ba6b7206f7276b
2023-10-02 11:44:19 +09:00
OpenStack Proposal Bot abde2f6576 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I20f2595e437bc5011f38e3cb9b467e327a98910d
2023-10-02 02:32:06 +00:00
Ian Y. Choi 8588e1f730 [Docs] Reflects I18n SIG, AC, and team meeting
1. I18n project is now switched into a SIG. So leverages
   to use appropriate term (e.g., PTL to SIG Chair)
   with updating description
   (and removing unnecessary parts like election)
2. ATC was renamed to AC. Also deletes AUC part since
   it is merged to AC.
3. I18n team has not been holding meetings for a while.
   Instead of deleting all the part, let's mention that we
   are looking for meeting chairs.

Change-Id: Ic1fc467e8201349777b81590e44d95553cf51781
2023-10-02 11:29:16 +09:00
Zuul 9c23ce53aa Merge "Rename extra-atcs to extra-acs on ansible" 2023-10-02 01:17:02 +00:00
Zuul 48c642b5a7 Merge "Update official_translator documentation" 2023-10-02 01:12:19 +00:00
Ian Y. Choi 814a553af0 Update readme for i18n repo
- Delete team and repository tags which no longer applies
- Remove IRC team meeting since we do not hold now

Change-Id: If2379d669332538f7518aff65d926b0f5c41be75
2023-10-02 02:05:41 +09:00
OpenStack Proposal Bot b03da458e6 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4e08fd361c8f5b772b92ba8f94989433c9a0402b
2023-10-01 02:30:22 +00:00
Ian Y. Choi 56d3a5e885 Update official_translator documentation
1. Fix wrong ATC list URL and description considering I18n
   governance change from an official project to SIG
2. Update explanation regarding AUC, ATC, and AC
3. Reflects naming and corresponding term/URL changes
   from OpenStack Foundation to OpenInfra Foundation
4. Explicit description on ">= 300 words" as 'at least'
   from 'more than'

Closes-Bug: #2036374
Change-Id: Icd0942994f374e711ced3f7efd9cff8e41ddad13
2023-09-27 00:38:23 +00:00
Ian Y. Choi 245815010a Rename extra-atcs to extra-acs on ansible
Update tox ansible environment to rename from extra-atcs
to extra-acs and work with environment.

1. Renaming to extra-acs aligns with a governance patch
: https://review.opendev.org/c/openstack/governance/+/893831

2. Update minimum ansible version since older version causes errors
: https://github.com/ansible/ansible/issues/77413

Change-Id: If5c69efddcdf4854f8db95cfa2356cda0cb6f98a
2023-09-26 00:07:39 +09:00
OpenStack Proposal Bot 266eebaf7d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I71dd03e8ef98c102644289deb042eddaec3b1bfe
2023-09-24 03:02:37 +00:00
Zuul af3d352bfc Merge "[Docs] Update release management part" 2023-09-19 07:58:16 +00:00
OpenStack Proposal Bot 1856916c9c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I43587ba995f123b9bd99070b770915b3088205fd
2023-09-19 03:51:28 +00:00
OpenStack Proposal Bot e2fc551c59 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1053190525432ed29716eefc7dfccaaaa421ee92
2023-09-14 04:50:27 +00:00
Akihiro Motoki 1cc69e482c generatepot.sh: Drop UUID filtering
(g)awk in Ubuntu 20.04 or later (perhaps gawk >=5.0) has more strict
regexp check and the regexp passed to awk in generatepot.sh cannot
pass the regexp check. This means our script does not work on
Ubuntu 20.04 or later.

This regexp was introduced to strip lines with UUID in a POT file
(e.g., "# 55a7796f27cb4468820fa48b90515add"), but the recent versions
of sphinx does not output such information at least with the sphinx
configuration used in OpenStack CI.
As a result this awk expression in generatepot.sh does nothing,
and I think we can drop this awk expression.

Change-Id: Ia61f74d0a73cc012afde6a4e16ac4431687a65a1
2023-09-12 14:55:53 +09:00
Ian Y. Choi 990d2bbe9d [Docs] Update release management part
- Reflects that now stable versions are created after release
  without early creation of the versions and merging to master
- cycle-with-milestones has been replaced by cycle-with-rc model
- Horizon is now following cycle-with-intermediary.
  Let's follow the same description as project-team-guide/release-management.
- Replace a term: from Forum/Design Summit to PTG

Change-Id: Id0ca964786a4a9cf2287b008d845f4c3a1a22e77
2023-09-12 10:30:04 +09:00
Akihiro Motoki 66888cbd31 Fix doc-pot-filter.sh
doc-pot-filter.sh is prepared to drop numbers from *.csv.
Howover, the path of CSV files in POT files were changed from some version
of Sphinx (from "doc/source/data/*.csv" to "../../source/data/*.csv") and
doc-pot-filter.sh does not work expectedly.
This commit adjusts the path of CSV files in POT files.

The number of entries in the target POT file (atc-stats.pot) is printed
before and after the filter is applied. I believe this helps us debug
the similar issue in future if needed.

Change-Id: I32d760a735ab1ae491d7e5efb36fd5059da0cd11
2023-09-11 14:19:33 +09:00
Akihiro Motoki 5a846dbd43 Recover -xe bash option in generatepot.sh
As part of commit 9b939e1b40,
"bash" was added when calling tools/generatepot.sh to avoid tox warning,
but as a result "-xe" option specified at the beginning of generatepot.sh
is no longer considered and we cannot see trace of generatepot.sh
in logs of upstream-translation-update job :-(

This commit explicitly set these options in the shell script
instead of the magic line (line 1).

doc-pot-filter.sh is also updated in the same way.

Change-Id: Ia2ca111cbb386ae5333d8a9a8622f7ac9b19746e
2023-09-09 17:54:22 +09:00
Ian Y. Choi c9c82d4f3e Sync translation_team.yaml with Zanata
This list is generated by running "tox -e zanata-users-sync"
command to sync translation members up-to-date similar as
I5a309564fae7229fdc097715bdbb1ce85d109753

Change-Id: Ica09d0348863aca9822eef7d9978a36b2ff3aac6
2023-09-02 15:17:49 +09:00
Ian Y. Choi 9b939e1b40 Update tox.ini to work with tox 4
Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals.

Also, add bash to allowlist_externals on generatepot tox env.

Related-Bug: #2000399
Change-Id: I3bb050b8abf3b32929eb0379eb8ac1bb84951803
2023-09-02 11:36:48 +09:00
OpenStack Proposal Bot 4e8bc2dd50 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia017f3b67acedbbf8676189611cdec836e229ef8
2022-08-23 02:44:05 +00:00
Ian Wienand 8cf776b6ab setup.py : disable autodiscovery with later setuptools
Disable the autodiscovery [1] for this project; it looks like this is
used basically via it's tox environments and doesn't need to worry
about what packages it creates.

This is hitting now because the translation proposal jobs run under a
3.8 venv which is bringing in newer setuptools.

[1] https://github.com/pypa/setuptools/issues/3197

Change-Id: I1f833f6db5fe14f17c91aa2e1f132c2f0fa62959
2022-07-28 12:59:45 +10:00
Zuul 315da907d8 Merge "Zanata stats tool: improve speed with user API" 2021-07-22 05:17:40 +00:00
Zuul 18e419dcce Merge "setup.cfg: Replace dashes with underscores" 2021-07-22 05:17:38 +00:00
Takashi Kajinami 8f32225672 setup.cfg: Replace dashes with underscores
Since setuptools v54.1.0[1], dash-separated options causes a warning
message like [2] and we should replace dashes with underscores.

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

[2]
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead

Change-Id: I05d9c484bb669ae33211e88924b20b7cfe7d0d67
2021-07-10 13:44:29 +00:00
Takashi Kajinami da77b4179e Update IRC network to OFTC
Change-Id: I3baed00e01b42b8ab95b2dfc9c04d32b2a38adaa
2021-07-10 13:44:21 +00:00
Takashi Kajinami 53a1782013 Add missing font for PDF generation
openstack-tox-docs job started to fail with the following error:

! LaTeX Error: File `tgtermes.sty' not found.

This patch adds the required font package to bindep doc profile.

Co-authored-by: Elod Illes <elod.illes@est.tech>
Closes-Bug: #1935742
Change-Id: Idc7ba5b1211327a258b2972f9271b09916598cb3
2021-07-10 22:31:58 +09:00
Ian Y. Choi 82b56bc56f Zanata stats tool: improve speed with user API
This patch enhances the speed of Zanata stats by using
user-based Zanata APIs rather than project-based APIs,
which took >1 days as more Zanata users and translation data
were accumulated.

Note that the API scheme follows with Stackalytics
: https://opendev.org/x/stackalytics/src/branch/master/stackalytics/processor/zanata.py#L38

Change-Id: Ia2462447f7a0cc2534e877976838de09e8683e89
2021-03-09 20:38:35 +09:00
Zuul 9267d04a1b Merge "Document tips on debugging translation job scripts" 2021-03-01 16:38:17 +00:00
Akihiro Motoki 78a21fa830 Document tips on debugging translation job scripts
The need for this information is rare but when I develop
the translation job scripts I always research the same thing
so it is useful at least for me.

Change-Id: I83f38fd673456e0d1179c50d9df903e16b01bd5f
2021-02-24 09:02:27 +09:00
Akihiro Motoki 27a98e3ec4 Document on renaming Chinese locales in horizon
There is no good place to document Chinese locale rename
in horizon and plugins, so this commit add contents to
"Handling horizon projects" section in tools.rst and add the info
on Chinese locales to the section.

Change-Id: I3e9d2398e3768b9d479d01aa2ac73f8d72bdcb8f
2021-02-12 03:41:29 +00:00
OpenStack Proposal Bot 80e0fee56b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4c65b3e9442c115618a7fc801325067ca7d87d99
2020-10-14 06:46:33 +00:00
OpenStack Proposal Bot b829a532e2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib7626f43ec00f1db43085ca10c705ce7febf581b
2020-09-07 06:49:07 +00:00
Zuul 9ec33d3a93 Merge "Stop to use the __future__ module." 2020-07-16 14:20:58 +00:00
Andreas Jaeger 8d8ec6042b Document translation of stable branches
Document the change from https://review.opendev.org/723217.

Change-Id: I619505df6bfbf9ef832c854c4b462061ee0b72cc
2020-07-10 13:37:13 +02:00
Hervé Beraud e624e808e8 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I04c1b88c5b978905c6b9fae5084c9d3561e805ad
2020-06-02 20:18:35 +02:00
Andreas Jaeger 533fd1ad52 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Set openstackdocs_auto_name to use 'project' as name.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I6430e16e22a2afc0fda3a5a43eccfd3309f20931
2020-05-21 09:22:19 +02:00
Andreas Jaeger 775319ae15 Update python project setup instructions
We don't need babel.cfg and instructions in setup.cfg anymore, see
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014233.html

Update docs for this.

Change-Id: Ibf9fdcddddf616fc9386b44ef33917421804238c
2020-04-27 18:22:56 +02:00
Roman Gorshunov 40a1f1f4f9 Sync translation_team.yaml with Zanata
This list is generated by running "zanata_users.py"
command to sync translation members.

Change-Id: I16cdbaf4aa9b537a46d4e84426671455e50cdfa3
2020-04-15 19:37:01 +02:00
OpenStack Proposal Bot 7714b88057 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I42b5bd866ac831ab9ce941fc3965929e8975a679
2020-04-03 10:37:03 +00:00
Andreas Jaeger 8f3886a7d2 Update project_setup
Improve wording of initial paragraph, make clear that ReactJS projects
need special treatment.

Change-Id: I56058e561c7027d07ed506b722abb44285854a0a
2020-03-11 10:52:22 +09:00
Andreas Jaeger e92c6fd83f Move project setup here
Move project setup from
https://docs.openstack.org/infra/manual/creators.html#enabling-translation-infrastructure
to this repository since the Infra Manual is now more generic and this
setup is specific to OpenStack.

Remove now obsolete section in reviewing-translation-import.

This is a clean import of the section from the Infra manual. Any changes
will be done as followup.

Needed-By: https://review.opendev.org/711827
Change-Id: I82f682e390cc4bdf8fa60cd756606cbb3705fba2
2020-03-11 10:52:22 +09:00
Andreas Jaeger 94ae2b89aa Fix infra.rst and ptl.rst for OpenDev
Update broken URLs, we have no openstack-infra namespace anymore.

Move from status.o.o to zuul.opendev.org, status.o.o does not provide
information about translation jobs anymore.

Change-Id: I4a91eb47e13441d654673ad085552534e987238c
2020-03-08 18:13:56 +01:00
OpenStack Proposal Bot 8e11a351a1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1dc702938d9a2561cd0383ffd90b360bf30f7b5f
2020-02-28 10:20:13 +00:00
OpenStack Proposal Bot 09d9fad4ac Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2701c0aacaf3f40065c6508aed8a19a2ff907dba
2020-02-14 06:23:45 +00:00
Andreas Jaeger fb8bc0b09b [ussuri][goal] Drop python 2.7 support
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Cleanup setup.cfg.
Update hacking for python3.
Remove six usage.

Change-Id: I37da6ad3306af138aa16cf73a116f0391d06675f
2020-02-12 08:24:32 +00:00