Commit Graph

11 Commits

Author SHA1 Message Date
Eric Arellano dedfc4159c Remove stale translations (#1040)
I was keeping these around to debug
https://github.com/Qiskit/documentation/issues/705, but the files are
resulting in issues because the docs are out of date. For example,
they're blocking us from removing unused images.

We can debug https://github.com/Qiskit/documentation/issues/705 by
reverting this commit when iterating locally.
2024-03-15 20:59:23 +00:00
abbycross 8b9050e14f remove trademark from Qiskit and update readme (#946) 2024-03-01 21:02:42 +00:00
abbycross f0b9fd0988 Proper trademarking of IBM and third-party names (#746)
Closes #726 

The first instance on a page of every trademarked name (whether IBM or
third-party) should be marked with the trademark symbol (except in
headings, where the code will not render as a symbol).

Outstanding questions: Where does the trademark symbol occur if the
following are the first instance on a page?:
(editing to add: preliminary guidance directs us as follows: )

- [ ] IBM Quantum™ systems
- [ ] Qiskit® Runtime service
- [ ] Qiskit® Runtime
- [ ] Qiskit IBM Provider (still unknown)
- [ ] Qiskit® Patterns
- [ ] Qiskit® Experiments
- [ ] Qiskit® 1.0
- [ ] Qiskit® Runtime IBM Client
- [ ] Qiskit® Runtime IBM REST API
- [ ] IBM Quantum™ Network

References: 
https://www.ibm.com/brand/experience-guides/quantum/voice#usage
https://www.ibm.com/legal/copyright-trademark


### Progress

- [x] Migration guides
- [x] Start
- [x] Build
- [x] Transpile
- [x] Verify
- [x] Run
- [x] Support

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-02-12 20:14:49 +00:00
github-actions[bot] 3dbb4059e9 New Crowdin translations by GitHub Action (#757)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-02-05 13:07:00 -05:00
github-actions[bot] 0c034b7185 New Crowdin translations by GitHub Action (#717)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-01-29 10:20:42 -05:00
github-actions[bot] a4587582f2 New Crowdin translations by GitHub Action (#663)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-01-22 10:23:00 -05:00
github-actions[bot] c0a7655bc6 New Crowdin translations by GitHub Action (#629)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-01-16 10:24:14 -05:00
github-actions[bot] 2a720097af New Crowdin translations by GitHub Action (#593)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-01-08 08:49:38 -05:00
Eric Arellano 19dacea308 Remove translations placeholder file (#571)
We now have actual translations under the folder `translations/ja`.

Also fixes our Prettier (autoformatter) config to ignore translations.
2024-01-02 20:07:48 +00:00
github-actions[bot] 277bc02123 New Crowdin translations by GitHub Action (#563)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-01-02 14:57:22 -05:00
Eric Arellano 3d7a8fb747 Add Crowdin to set up translations (#541)
Part of  https://github.com/Qiskit/documentation/issues/476. 

This PR sets up two GitHub actions for interfacing with Crowdin.com, the
website the translation team uses for translations.

1. Upload English sources. We do this on any change to `docs/` (except
API docs), which the translation team so that they can start making
updates sooner. For example:

<img width="346" alt="Screenshot 2023-12-20 at 5 45 05 PM"
src="https://github.com/Qiskit/documentation/assets/14852634/0ed4cbed-45db-45bb-9150-5d90bec7a0f6">

2. Download the translations. This happens once a week, which the
translations team requested. It will open up a pull request like
https://github.com/Eric-Arellano/documentation/pull/10.

## How auth works

We only need to set GitHub Secrets for CROWDIN_PROJECT_ID and
CROWDIN_PERSONAL_TOKEN. GitHub will automatically set GITHUB_TOKEN using
[this
mechanism](https://docs.github.com/en/actions/security-guides/automatic-token-authentication).

## Translations saved at `translations/` folder

This adds a top-level `translations/` folder, rather than nesting the
translations inside the `docs/` folder. For example:

<img width="367" alt="Screenshot 2023-12-20 at 5 48 09 PM"
src="https://github.com/Qiskit/documentation/assets/14852634/42e27fd4-5c67-4ceb-aae3-8f25315f7aae">

This top-level folder is useful because it reduces noise in the `docs/`
folder. It makes it more obvious to the team what is the original source
docs vs. what is translations and should not be modified directly in
this repository.

### How this works with the app

To get docs previews working in this repo, we teach the Docker image to
mount `translations/` as if its contents were in the folder `docs/`,
since the application expects all content to live there.

When we sync the translations from open-source to closed-source for
production, we will copy the contents of `translations/` so that it
actually lives underneath `docs/`. For example,
`translations/es/support.mdx` becomes `docs/es/support.mdx`.

## Locales

As explained in https://github.com/Qiskit/documentation/issues/7, we
generally want to use the two-letter code for languages, like `es` and
`fr`. The only exception is Chinese, where we need to distinguish
between Traditional and Simplified.

This config works with that, so long as in Crowdin.com, the project sets
up this Language Mapping under the Languages settings:

<img width="475" alt="Screenshot 2023-12-20 at 5 59 19 PM"
src="https://github.com/Qiskit/documentation/assets/14852634/adf643d1-716a-435c-9e32-9762c6570956">

## Doesn't yet add `_languages.json`

As explained in https://github.com/Qiskit/documentation/issues/7, we
will probably want a file like `_languages.json` that teaches the docs
app what each language is, such as its name to show in the language
toggle. That schema still needs to be finalized and it can be added in a
follow up.
2023-12-29 15:45:56 +00:00