I went through all the English source files and handpicked the 579 different strings of references to Glossary (the words in triple-parentheses). It was a huge help for feeding the Translation Memory (TM), but I think it can be useful for anyone in the future. As the entire file is only 18 kB in total, so I think we could store in our repository somewhere.

Comments

Balu Ertl created an issue. See original summary.

baluertl’s picture

Assigned: Unassigned » baluertl
Issue summary: View changes
StatusFileSize
new18.72 KB

My first guess was to put it under /assets, so the patch provided.

jhodgdon’s picture

Title: List of Glossary references » List of Table of Contents entries

Oh, you mean Table of Contents entries, not Glossary.

--- /dev/null
+++ b/assets/glossary-reference-strings.txt

Needs a different file name. :)

Hm. Did you use a script to extract them? If so, maybe we should put that (I realize it's probably one line) in the scripts folder? Or maybe just put the one-line command in a README file, or maybe at the top of this file in a comment that the translation memory would ignore (start with a # sign or something)?

jhodgdon’s picture

Status: Active » Needs work
jhodgdon’s picture

Oh, I see you said you hand-picked them. Let's see... Here's a Linux/Unix command line that you can run to generate the list, run from the source/en directory:

grep -h "(((" *.txt | sort -u > ../../assets/toc-entries.txt

jhodgdon’s picture

Component: Other » Contributor Guidelines content
Related issues: +#2828137: Add section about using Translation Memory to contributor guide

I think that we should probably combine this with #2828137: Add section about using Translation Memory to contributor guide, and rather than adding this file to the Git repository, we should put that command line from #5 into the section that needs to be written (in the Contributor Guide) about using translation memory.

jhodgdon’s picture

Title: List of Table of Contents entries » List of Index entries

Actually, these are index entries. Doh!

jhodgdon’s picture

Status: Needs work » Closed (works as designed)

I added a note to #2828137-14: Add section about using Translation Memory to contributor guide so let's deal with this there. I don't think we want to add the output of this command to the Git repo, as it would get out of date pretty easily.

baluertl’s picture

I tried and confirm that your grep command shared in #5 does the job nicely even on Mac's Terminal. Probably we should leave this issue as Closed and use it as a reference for the future if anyone else would need an up-to-date list of ToC entries for any purpose.