Commit Graph

893 Commits

Author SHA1 Message Date
wiz
0247c7137e
Update translation strings from Transifex 2020-12-06 01:12:33 +09:00
TechMiX
159d9c71a1 add 'sat' string for i18n 2020-12-05 14:59:08 +01:00
wiz
805636229a
Update translation strings from Transifex 2020-12-05 22:42:48 +09:00
wiz
c5cd80ac48
Update translation strings from Transifex 2020-12-05 21:57:51 +09:00
softsimon
94a5e8edae
i18n update 2020-12-05 11:58:22 +07:00
softsimon
1af1f7211e
Remove extra garbage characters from OP_RETURN tooltip.
fixes #254
2020-12-05 02:32:16 +07:00
softsimon
4d54723472
Fix for changing locale on other networks than mainnet.
fixes #253
2020-12-05 02:08:54 +07:00
softsimon
1fc1b4b86e
i18n: Asset search box 2020-12-05 02:01:31 +07:00
wiz
5774b395a7
Update translation strings from Transifex 2020-12-05 02:39:50 +09:00
softsimon
f4c27e4c26
i18n: Added X of X transaction. Flipped collapse/expand 2020-12-05 00:16:23 +07:00
softsimon
336e45a7b1
i18n: Added "miner identification" and updated "navigate to sponsor" 2020-12-04 23:07:53 +07:00
wiz
6acacc7792
Update translations from Transifex 2020-12-05 00:36:00 +09:00
softsimon
10b9778b3c
Adding missing Asset page strings. Fixed block title translations. 2020-12-04 22:30:09 +07:00
wiz
9ebb9a5d65
Use --force when running tx pull for Transifex strings 2020-12-05 00:12:08 +09:00
wiz
6476d1e77c
Update translations from Transifex 2020-12-05 00:11:40 +09:00
softsimon
67df21fe50
Fixing about-link title translation. 2020-12-04 21:49:03 +07:00
wiz
1e8167212f
Merge pull request #251 from mempool/simon/i18n-everything
i18n all the remaining strings.
2020-12-04 23:40:35 +09:00
softsimon
ea496915c4
Updated messages.xlf 2020-12-04 21:38:14 +07:00
softsimon
035f9a4d67
Merge commit '768fbdfbfa8e0064b86e168c59762909f4c1763b' into simon/i18n-everything
* commit '768fbdfbfa8e0064b86e168c59762909f4c1763b':
  Update translated strings from Transifex
  More fixes for RTL
  Always render app-mempool-graph using LTR
  Implement auto RTL support for i18n locales like Arabic, Persian, etc.
  Update extracted i18n strings from source
  Enable 'ar' locale for Arabic
  Update translated strings from Transifex
  Fix incorrectly used 'nn' locale, rename it to 'nb' instead
  Update transifex-client configuration to use master branch

# Conflicts:
#	frontend/src/locale/messages.xlf
2020-12-04 21:30:51 +07:00
softsimon
232fc65af2
i18n correcctions based on feedback. Added even more missing i18n strings. 2020-12-04 21:29:31 +07:00
wiz
768fbdfbfa
Update translated strings from Transifex 2020-12-04 23:03:52 +09:00
softsimon
974d89e40b
Merge pull request #257 from mempool/wiz/implement-rtl-support-for-i18n
Implement auto RTL support for i18n locales like Arabic, Persian, etc.
2020-12-04 21:00:39 +07:00
wiz
92d163f495
More fixes for RTL 2020-12-04 22:54:09 +09:00
wiz
62363802be
Always render app-mempool-graph using LTR 2020-12-04 22:41:58 +09:00
wiz
e49ecd9368
Implement auto RTL support for i18n locales like Arabic, Persian, etc.
Fixes #255
2020-12-04 05:56:40 +09:00
wiz
ea521651fd
Update extracted i18n strings from source 2020-12-04 04:11:35 +09:00
wiz
73db9c5023
Enable 'ar' locale for Arabic 2020-12-04 04:11:14 +09:00
wiz
cc451d29ab
Update translated strings from Transifex 2020-12-04 04:07:01 +09:00
wiz
a831d04694
Fix incorrectly used 'nn' locale, rename it to 'nb' instead 2020-12-03 22:37:06 +09:00
softsimon
fb11d73751
i18n all the remaining strings. 2020-12-03 18:34:19 +07:00
wiz
9509891abc
Update transifex-client configuration to use master branch 2020-12-03 20:09:08 +09:00
wiz
129f122993
Replace nginx.conf try_files for /$lang/index.html with rewrite (fixes #250) 2020-12-03 18:52:03 +09:00
wiz
8875579c08
Update strings from Transifex 2020-12-03 10:16:21 +09:00
wiz
83501cfdbe
Enable locale 'vi' for Vietnamese 2020-12-03 10:16:02 +09:00
wiz
2b2bc2fc41
Change nginx.conf Tor HS port from 81 to 80 to fix i18n bug 2020-12-03 09:56:29 +09:00
wiz
6b498b9601
Exempt localhost from nginx rate limits for Tor and AU usage 2020-12-03 09:47:39 +09:00
softsimon
e35eb5aad2
Adding virtual size to transaction details.
fixes #248
2020-12-02 22:22:14 +07:00
softsimon
2bba51e6c1
Merge branch 'master' into simon/angular-universal
* master:
  Update list of supported locales
  Add one more fix to nginx.conf for i18n
  Remove unused i18n tags in frontend/src/index.html
  Update translations from Transifex
  Enable 'fr' locale for French
  Corrected some missing spaces on transactions page and a blank render bug when confirmation time is below 1 minute.
  Implement i18n support in frontend using Angular + Transifex + NGINX

# Conflicts:
#	frontend/src/app/app.constants.ts
#	frontend/sync-assets.js
2020-12-02 20:05:49 +07:00
wiz
d3cb1d607b
Update list of supported locales 2020-12-02 21:33:53 +09:00
wiz
352afbc029
Add one more fix to nginx.conf for i18n 2020-12-02 21:21:44 +09:00
softsimon
2ef87603fd
Merge pull request #191 from mempool/wiz/i18n
Implement i18n support in frontend using Angular + Transifex + NGINX
2020-12-02 19:07:28 +07:00
wiz
88b702d6d8
Remove unused i18n tags in frontend/src/index.html 2020-12-02 20:35:52 +09:00
wiz
0d2e4000e1
Update translations from Transifex 2020-12-02 20:35:50 +09:00
wiz
9148d30fcc
Enable 'fr' locale for French 2020-12-02 20:35:46 +09:00
softsimon
3f990ff706
Corrected some missing spaces on transactions page and a blank render bug when confirmation time is below 1 minute. 2020-12-02 17:03:04 +07:00
wiz
4658b47007
Implement i18n support in frontend using Angular + Transifex + NGINX
This PR adds basic i18n support into the mempool frontend, together with
a smooth workflow for developers and translators to collaborate:

* Using the existing @angular/localize module, developers add i18n
metadata to any frontend strings their new features or changes modify

* Using the new npm script `i18n-extract-from-source`, developers
extract the i18n data from source code into `src/locale/messages.xlf`

* After pushing the updated `src/locale/messages.xlf` to GitHub, the
Transifex service will update its database from the new source data

* Using the Transifex website UI, translators can work together to
translate all the mempool frontend strings into their native languages

* Using the new npm script `i18n-pull-from-transifex`, developers can
pull in completed translations from Transifex, and commit them into git.

This flow requires an API key from Transifex, which can be obtained at
https://www.transifex.com/user/settings/api/ to be used with the python
script installed by `pip install transifex-client` - after preparing
these, run the npm script which will ask you for the API key the first
time. When downloading is complete, you can test building the frontend,
and if successful, commit the new strings files into git.

This PR implements a new locale selector in the footer of the homepage
dashboard, and includes WIP translations for the following languages:

* Czech (cs)
* German (de)
* Japanese (ja)
* Norwegian (nn)
* Spanish (es)
* Swedish (sv)
* Ukrainian (uk)
* Persian (fa)
* Portugese (pt)
* Turkish (tr)
* Dutch (nl)
* French (fr)
* Chinese (zh)
* Slovenian (sl)
* Korean (ko)
* Polish (pl)

The user-agent's `Accept-Language` header is used to automatically
detect their preferred language, which can be manually overriden by the
pull-down selector, which saves their preference to a cookie, which is
used by nginx to serve the correct HTML bundle to the user.

Remaining tasks include adding i18n metadata for strings in the Bisq and
Liquid frontend code, mouseover hover tooltip strings, hard-coded og
metadata inside HTML templates, and many other places. This will be done
in a separate PR.

When upgrading to add i18n support, mempool instance operators must take
care to install the new nginx.conf and nginx-mempool.conf files, and
tweak for their specific site configuration.

Fixes #81
2020-12-02 04:19:33 +09:00
softsimon
f9c2bc1fb5
Merge commit 'f151eb81c812a62d1d5c57ee91620a3dd9ae5068' into simon/angular-universal
* commit 'f151eb81c812a62d1d5c57ee91620a3dd9ae5068':
  Upgrade angular from 10.0.4 to 10.2.3, typescript from 3.9.7 to 4.0.5
  Modify /bisq/api/v1/markets/markets to only return active markets
  Remove unnecessary @types/axios dependency.
  Same npm fix for running `tsc` from `./node_modules` for backend
  Set npm to run `ng` and `tsc` binaries from `./node_modules/` path

# Conflicts:
#	frontend/package-lock.json
#	frontend/package.json
2020-11-28 02:21:12 +07:00
softsimon
f151eb81c8
Merge pull request #195 from mempool/wiz/angular-10.2.3
Upgrade angular from 10.0.4 to 10.2.3, typescript from 3.9.7 to 4.0.5
2020-11-28 02:09:52 +07:00
wiz
9b89d9977f
Upgrade angular from 10.0.4 to 10.2.3, typescript from 3.9.7 to 4.0.5 2020-11-28 04:04:45 +09:00
wiz
b6150a3237
Route all Angular Universal requests to nginx, remove simon's hacks 2020-11-27 23:03:48 +09:00