Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused parts of translation files #2494

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 1 addition & 49 deletions src/components/src/modals/add-map-style-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,10 @@ function AddMapStyleModalFactory() {
<FormattedMessage id={'modal.addStyle.pasteTitle'} />
</div>
<div className="modal-section-subtitle">
{intl.formatMessage({id: 'modal.addStyle.pasteSubtitle0'})}
<InlineLink
target="_blank"
href="https://www.mapbox.com/help/studio-manual-publish/#style-url"
>
{' '}
{intl.formatMessage({id: 'modal.addStyle.pasteSubtitle2'})}
</InlineLink>{' '}
{intl.formatMessage({id: 'modal.addStyle.pasteSubtitle3'})}
<InlineLink
target="_blank"
href="https://docs.mapbox.com/mapbox-gl-js/style-spec"
href="https://maplibre.org/maplibre-style-spec/"
>
{' '}
{intl.formatMessage({id: 'modal.addStyle.pasteSubtitle4'})}
Expand All @@ -202,46 +194,6 @@ function AddMapStyleModalFactory() {
/>
</StyledModalSection>

{/* <StyledModalSection>
<div className="modal-section-title">
<FormattedMessage id={'modal.addStyle.publishTitle'} />
</div>
<div className="modal-section-subtitle">
{intl.formatMessage({id: 'modal.addStyle.publishSubtitle1'})}
<InlineLink target="_blank" href="https://www.mapbox.com/studio/styles/">
{' '}
mapbox
</InlineLink>{' '}
{intl.formatMessage({id: 'modal.addStyle.publishSubtitle2'})}
<InlineLink
target="_blank"
href="https://www.mapbox.com/help/studio-manual-publish/"
>
{' '}
{intl.formatMessage({id: 'modal.addStyle.publishSubtitle3'})}
</InlineLink>{' '}
{intl.formatMessage({id: 'modal.addStyle.publishSubtitle4'})}
</div>

<div className="modal-section-subtitle">
{intl.formatMessage({id: 'modal.addStyle.publishSubtitle5'})}
<InlineLink
target="_blank"
href="https://www.mapbox.com/help/how-access-tokens-work/"
>
{' '}
{intl.formatMessage({id: 'modal.addStyle.publishSubtitle6'})}
</InlineLink>{' '}
{intl.formatMessage({id: 'modal.addStyle.publishSubtitle7'})}
</div>
<InputLight
type="text"
value={inputStyle.accessToken || ''}
onChange={({target: {value}}) => this.props.inputMapStyle({accessToken: value})}
placeholder={intl.formatMessage({id: 'modal.addStyle.exampleToken'})}
/>
</StyledModalSection> */}

<StyledModalSection>
<div className="modal-section-title">
<FormattedMessage id={'modal.addStyle.namingTitle'} />
Expand Down
16 changes: 3 additions & 13 deletions src/localization/src/translations/ca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,20 +269,10 @@ export default {
warning: "estàs a punt d'esborrar aquest conjunt de dades. Afectarà {length} capes"
},
addStyle: {
publishTitle: "2. Publica el teu estil a Mapbox o proporciona el token d'accés",
publishSubtitle1: 'Pots crear el teu propi estil de mapa a',
publishSubtitle2: 'i',
publishSubtitle3: 'publicar',
publishSubtitle4: 'ho.',
publishSubtitle5: 'Per utilitzar un estil privat, enganxa el teu',
publishSubtitle6: "token d'accés",
publishSubtitle7:
'aquí. *kepler.gl és una aplicació client, les dades romanen al teu navegador..',
exampleToken: 'p.ex. pk.abcdefg.xxxxxx',
pasteTitle: "1. Enganxa la URL de l'estil",
pasteSubtitle1: 'Què és un',
pasteSubtitle2: "URL de l'estil",
namingTitle: '3. Posa nom al teu estil'
pasteSubtitle3: 'Enllaç a un style.json que segueix el',
pasteSubtitle4: "MapLibre Especificació d'estil",
namingTitle: '2. Posa nom al teu estil'
},
shareMap: {
shareUriTitle: 'Comparteix URL del mapa',
Expand Down
19 changes: 3 additions & 16 deletions src/localization/src/translations/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,23 +265,10 @@ export default {
warning: '确认要删除这个数据集。它会影响 {length} 个层'
},
addStyle: {
publishTitle:
'2. 如果在步骤1中输入了 mapbox 样式的 url,需要在 mapbox 上发布样式或提供访问令牌(access token)。(可选)',
publishSubtitle1: '可以在以下位置创建自己的地图样式',
publishSubtitle2: '并',
publishSubtitle3: '发布',
publishSubtitle4: '。',
publishSubtitle5: '使用私有样式,需粘贴',
publishSubtitle6: '访问令牌(access token)',
publishSubtitle7: '。* Kepler.gl 是一个客户端应用程序,数据保留在您的浏览器中。',
exampleToken: '例) pk.abcdefg.xxxxxx',
pasteTitle: '1. 粘贴样式 url',
pasteSubtitle0: '样式 url 可以是 Mapbox 的',
pasteSubtitle1: '什么是',
pasteSubtitle2: '样式 URL,',
pasteSubtitle3: '还可以使用遵从Mapbox GL样式的style.json的url:',
pasteSubtitle4: 'Mapbox GL 样式规范',
namingTitle: '3. 命名你的样式'
pasteSubtitle3: '您可以使用符合 的style.json ',
pasteSubtitle4: 'MapLibre款式规格',
namingTitle: '2. 命名你的样式'
},
shareMap: {
shareUriTitle: '分享地图网址',
Expand Down
20 changes: 3 additions & 17 deletions src/localization/src/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,24 +303,10 @@ export default {
warning: 'you are going to delete this dataset. It will affect {length} layers'
},
addStyle: {
publishTitle:
'2. If entered mapbox style url in step.1, publish your style at mapbox or provide access token. (Optional)',
publishSubtitle1: 'You can create your own map style at',
publishSubtitle2: 'and',
publishSubtitle3: 'publish',
publishSubtitle4: 'it.',
publishSubtitle5: 'To use private style, paste your',
publishSubtitle6: 'access token',
publishSubtitle7:
'here. *kepler.gl is a client-side application, data stays in your browser..',
exampleToken: 'e.g. pk.abcdefg.xxxxxx',
pasteTitle: '1. Paste style url',
pasteSubtitle0: 'Style url can be a mapbox',
pasteSubtitle1: 'What is a',
pasteSubtitle2: 'style URL',
pasteSubtitle3: 'or a style.json using the',
pasteSubtitle4: 'Mapbox GL Style Spec',
namingTitle: '3. Name your style'
pasteSubtitle3: 'Link to a style.json using the',
pasteSubtitle4: 'MapLibre Style Spec',
namingTitle: '2. Name your style'
},
shareMap: {
title: 'Share Map',
Expand Down
18 changes: 4 additions & 14 deletions src/localization/src/translations/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,10 @@ export default {
warning: 'estás a punto de borrar este conjunto de datos. Afectará a {length} capas'
},
addStyle: {
publishTitle: '1. Publicar tu estilo en Mapbox o proporcionar el token de acceso',
publishSubtitle1: 'Puedes crear el tu propio estilo de mapa en',
publishSubtitle2: 'y',
publishSubtitle3: 'publicar',
publishSubtitle4: 'lo.',
publishSubtitle5: 'Para utilizar un estilo privado, engancha tu',
publishSubtitle6: 'token de acceso',
publishSubtitle7:
'aquí. *kepler.gl es una aplicación cliente, los datos quedan en tu navegador..',
exampleToken: 'p.e. pk.abcdefg.xxxxxx',
pasteTitle: '2. Engancha el enlace del estilo',
pasteSubtitle1: 'Qué es un',
pasteSubtitle2: 'enlace del estilo',
namingTitle: '3. Poner nombre a tu estilo'
pasteTitle: '1. Engancha el enlace del estilo',
pasteSubtitle3: 'Enlace a un style.json que sigue',
pasteSubtitle4: 'Especificación de estilo MapLibre',
namingTitle: '2. Poner nombre a tu estilo'
},
shareMap: {
shareUriTitle: 'Compartir el enlace del mapa',
Expand Down
18 changes: 4 additions & 14 deletions src/localization/src/translations/fi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,20 +261,10 @@ export default {
warning: 'aiot poistaa tämän aineiston. Aineostoa käyttävien tasojen lukumäärä: {length}'
},
addStyle: {
publishTitle: '1. Julkaise tyylisi Mapboxissa tai anna tunniste',
publishSubtitle1: 'Voit luoda oman karttatyylisi sivulla',
publishSubtitle2: 'ja',
publishSubtitle3: 'julkaista',
publishSubtitle4: 'sen.',
publishSubtitle5: 'Käyttääksesi yksityistä tyyliä, liitä',
publishSubtitle6: 'tunnisteesi',
publishSubtitle7:
'tänne. *kepler.gl on client-side sovellus, data pysyy vain selaimessasi...',
exampleToken: 'esim. pk.abcdefg.xxxxxx',
pasteTitle: '2. Liitä tyyli-URL',
pasteSubtitle1: 'Mikä on',
pasteSubtitle2: 'tyyli-URL?',
namingTitle: '3. Nimeä tyylisi'
pasteTitle: '1. Liitä tyyli-URL',
pasteSubtitle3: 'Linkki style.json-tiedostoon, joka käyttää',
pasteSubtitle4: 'MapLibre-tyylimäärittely',
namingTitle: '2. Nimeä tyylisi'
},
shareMap: {
shareUriTitle: 'Jaa kartan URL',
Expand Down
20 changes: 3 additions & 17 deletions src/localization/src/translations/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,24 +267,10 @@ export default {
warning: 'このデータセットを削除します。{length}個のレイヤに影響します。'
},
addStyle: {
publishTitle:
'2. ステップ1でMapboxのスタイルURLを指定した場合、Mapboxでスタイルを公開するか、アクセストークンを以下に入力します(オプション)',
publishSubtitle1: '独自のスタイルを',
publishSubtitle2: 'で作成し、',
publishSubtitle3: '公開',
publishSubtitle4: 'することができます',
publishSubtitle5: '非公開のスタイルを使用するには、自身の',
publishSubtitle6: 'アクセストークン',
publishSubtitle7:
'をここに入力します。*kepler.glはクライアント上で動作するため、データは自身のブラウザに保持されます。',
exampleToken: '例) pk.abcdefg.xxxxxx',
pasteTitle: '1. スタイルのURLをペースト',
pasteSubtitle0: 'スタイルのURLはMapboxの',
pasteSubtitle1: 'What is a',
pasteSubtitle2: 'スタイルURL',
pasteSubtitle3: 'を指定するか、Mapbox GLの仕様に沿ったstyle.jsonのURLを指定します:',
pasteSubtitle4: 'Mapbox GL スタイル仕様',
namingTitle: '3. スタイルの名称を設定'
pasteSubtitle3: 'を使用する style.json ファイルへのリンク',
pasteSubtitle4: 'MapLibre スタイル定義',
namingTitle: '2. スタイルの名称を設定'
},
shareMap: {
shareUriTitle: '地図のURLを共有',
Expand Down
18 changes: 4 additions & 14 deletions src/localization/src/translations/pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,20 +262,10 @@ export default {
warning: 'você irá deletar esse conjunto de dados. Isso irá afetar {length} camadas'
},
addStyle: {
publishTitle: '1. Publique o seu Estilo no Mapbox ou providencie a chave de acesso',
publishSubtitle1: 'Você pode criar o seu próprio estilo em',
publishSubtitle2: 'e',
publishSubtitle3: 'publicar',
publishSubtitle4: 'isso.',
publishSubtitle5: 'Para utilizar estilo privado, cole a sua',
publishSubtitle6: 'chave de acesso',
publishSubtitle7:
'aqui. *kepler.gl é uma aplicação client-side, os dados permanecem no seu browser..',
exampleToken: 'e.g. pk.abcdefg.xxxxxx',
pasteTitle: '2. Cole a url do seu estilo',
pasteSubtitle1: 'O que é uma',
pasteSubtitle2: 'URL de estilo',
namingTitle: '3. Nomeie o seu estilo'
pasteTitle: '1. Cole a url do seu estilo',
pasteSubtitle3: 'Um link para um arquivo style.json que usa a',
pasteSubtitle4: 'especificação de estilo MapLibre',
namingTitle: '2. Nomeie o seu estilo'
},
shareMap: {
shareUriTitle: 'Compartilhar a URL do Mapa',
Expand Down
20 changes: 3 additions & 17 deletions src/localization/src/translations/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,24 +269,10 @@ export default {
warning: 'вы собираетесь удалить этот набор данных. Это повлияет на {length} слой'
},
addStyle: {
publishTitle:
'2. Если вы указали URL-адрес файла mapbox на шаге 1, опубликуйте свой стиль на mapbox или предоставьте токен доступа. (Необязательно)',
publishSubtitle1: 'Вы можете создать свой собственный стиль карты',
publishSubtitle2: 'и',
publishSubtitle3: 'опубликовать',
publishSubtitle4: 'его.',
publishSubtitle5: 'Чтобы использовать частный стиль, вставьте свой',
publishSubtitle6: 'token доступа',
publishSubtitle7:
'прим. kepler.gl - это клиентское приложение, данные остаются в вашем браузере .',
exampleToken: 'например pk.abcdefg.xxxxxx',
pasteTitle: '1. Вставить URL стиля',
pasteSubtitle0: 'URL стиля может быть mapbox',
pasteSubtitle1: 'Или',
pasteSubtitle2: 'URL стиля',
pasteSubtitle3: 'style.json используя',
pasteSubtitle4: 'Mapbox GL Style Spec',
namingTitle: '3. Назови свой стиль'
pasteSubtitle3: 'Ссылка на файл style.json, использующий',
pasteSubtitle4: 'MapLibre Style Spec',
namingTitle: '2. Назови свой стиль'
},
shareMap: {
shareUriTitle: 'Поделиться URL карты',
Expand Down
Loading