8000 add new pages to transifex (#201) · pymc-devs/pymc-data-umbrella@195c663 · GitHub
[go: up one dir, main page]

Skip to content

Commit 195c663

Browse files
authored
add new pages to transifex (#201)
* add newly created files to txconfig * fix preview link generator
1 parent 3585803 commit 195c663

File tree

3 files changed

+80
-4
lines changed

3 files changed

+80
-4
lines changed

.github/workflows/rtd-preview-link.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Read the Docs Pull Request Preview
2+
23
on:
34
pull_request_target:
45
types:
@@ -15,15 +16,15 @@ jobs:
1516
language: [en, es, pt]
1617
include:
1718
- language: en
18-
slug: ""
19+
project: "pymc-data-umbrella"
1920
- language: es
20-
slug: "-es"
21+
project: "pymc-data-umbrella-es"
2122
- language: pt
22-
slug: "-pt"
23+
project: "pymc-data-umbrella-pt"
2324
runs-on: ubuntu-latest
2425
steps:
2526
- uses: readthedocs/actions/preview@v1
2627
with:
27-
project-slug: "pymc-data-umbrella${{ matrix.suffix }}"
28+
project-slug: "${{ matrix.project }}"
2829
message-template: ":books: Documentation preview ${{ matrix.language }} :books:: {docs-pr-index-url}"
2930
project-language: ${{ matrix.language }}

.tx/config

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,66 @@ source_file = gettext/about/probabilistic_programming_with_pymc/index.pot
259259
type = PO
260260
minimum_perc = 0
261261
resource_name = about/probabilistic_programming_with_pymc/index
262+
263+
[o:pymc:p:data-umbrella-sprints-website:r:contributing_language-translations]
264+
file_filter = locales/<lang>/LC_MESSAGES/contributing/language-translations.po
265+
source_file = gettext/contributing/language-translations.pot
266+
type = PO
267+
minimum_perc = 0
268+
resource_name = contributing/language-translations
269+
270+
[o:pymc:p:data-umbrella-sprints-website:r:contributing_videos]
271+
file_filter = locales/<lang>/LC_MESSAGES/contributing/videos.po
272+
source_file = gettext/contributing/videos.pot
273+
type = PO
274+
minimum_perc = 0
275+
resource_name = contributing/videos
276+
277+
[o:pymc:p:data-umbrella-sprints-website:r:2023-03_sprint_index]
278+
file_filter = locales/<lang>/LC_MESSAGES/2023-03_sprint/index.po
279+
source_file = gettext/2023-03_sprint/index.pot
280+
type = PO
281+
minimum_perc = 0
282+
resource_name = 2023-03_sprint/index
283+
284+
[o:pymc:p:data-umbrella-sprints-website:r:2023-03_sprint_sprint_parties_media_kit]
285+
file_filter = locales/<lang>/LC_MESSAGES/2023-03_sprint/sprint_parties/media_kit.po
286+
source_file = gettext/2023-03_sprint/sprint_parties/media_kit.pot
287+
type = PO
288+
minimum_perc = 0
289+
resource_name = 2023-03_sprint/sprint_parties/media_kit
290+
291+
[o:pymc:p:data-umbrella-sprints-website:r:2023-03_sprint_sprint_parties_index]
292+
file_filter = locales/<lang>/LC_MESSAGES/2023-03_sprint/sprint_parties/index.po
293+
source_file = gettext/2023-03_sprint/sprint_parties/index.pot
294+
type = PO
295+
minimum_perc = 0
296+
resource_name = 2023-03_sprint/sprint_parties/index
297+
298+
[o:pymc:p:data-umbrella-sprints-website:r:2023-03_sprint_sprint_parties_community_partners]
299+
file_filter = locales/<lang>/LC_MESSAGES/2023-03_sprint/sprint_parties/community_partners.po
300+
source_file = gettext/2023-03_sprint/sprint_parties/community_partners.pot
301+
type = PO
302+
minimum_perc = 0
303+
resource_name = 2023-03_sprint/sprint_parties/community_partners
304+
305+
[o:pymc:p:data-umbrella-sprints-website:r:2023-03_sprint_sprint_parties_contributors]
306+
file_filter = locales/<lang>/LC_MESSAGES/2023-03_sprint/sprint_parties/contributors.po
307+
source_file = gettext/2023-03_sprint/sprint_parties/contributors.pot
308+
type = PO
309+
minimum_perc = 0
310+
resource_name = 2023-03_sprint/sprint_parties/contributors
311+
312+
[o:pymc:p:data-umbrella-sprints-website:r:2023-03_sprint_sprint_parties_organizers]
313+
file_filter = locales/<lang>/LC_MESSAGES/2023-03_sprint/sprint_parties/organizers.po
314+
source_file = gettext/2023-03_sprint/sprint_parties/organizers.pot
315+
type = PO
316+
minimum_perc = 0
317+
resource_name = 2023-03_sprint/sprint_parties/organizers
318+
319+
[o:pymc:p:data-umbrella-sprints-website:r:2023-03_sprint_sprint_parties_sponsors]
320+
file_filter = locales/<lang>/LC_MESSAGES/2023-03_sprint/sprint_parties/sponsors.po
321+
source_file = gettext/2023-03_sprint/sprint_parties/sponsors.pot
322+
type = PO
323+
minimum_perc = 0
324+
resource_name = 2023-03_sprint/sprint_parties/sponsors

flag_old_files.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import glob
2+
3+
with open(".tx/config", mode="r", encoding="utf-8") as f:
4+
tx_config_orig = f.read()
5+
6+
existing_filenames = list(glob.glob("gettext/**/*.pot", recursive=True))
7+
8+
for line in tx_config_orig.split("\n"):
9+
if line.startswith("source_file"):
10+
filename = line.split("=")[1].strip()
11+
if filename not in existing_filenames:
12+
print(f"Unable to find {filename} from tx config in existing files")

0 commit comments

Comments
 (0)
0