Updates Babel README to remove temporary kdmukai fork references (#1269)

* Default bitcoind timeout to 60s for all platforms

* Create bitcoind_setup_tasks.py

* Missing prop setter bugfix

Fixes #1221

* Use jinja's "tojson" to safely escape account_map device labels

* Update wallet_pdf.jinja

* Babel instruction updates to remove kdmukai fork references

* Update README.md

* Fix hwi_bridge mode template issues

Fixes #1270

Co-authored-by: Kim Neunert <k9ert@gmx.de>
This commit is contained in:
kdmukai 2021-07-06 12:25:39 -05:00 committed by GitHub
parent dc936f852f
commit a123d237cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 35 deletions

View file

@ -14,7 +14,7 @@ When Github Desktop starts up it'll ask you to log in to your github account. If
### Clone the Specter Desktop repo
Now you're going to grab a copy of the full Specter Desktop source code, which includes the translation files.
Open the Github Desktop app and add the Specter Desktop repo via "Clone a Repository". On the "URL" tab type in ~~"cryptoadvance/specter-desktop"~~ (**for now we have to point to my work-in-progress repo: "kdmukai/specter-desktop"**):
Open the Github Desktop app and add the Specter Desktop repo via "Clone a Repository". On the "URL" tab type in "cryptoadvance/specter-desktop":
<img src="img/add_repo.png">
@ -84,7 +84,7 @@ _Note: You'll see the app offering to "create a fork". Do not create a fork! We
**_The next steps will break from typical `git` procedures in order to keep things simple for our non-programmer translators._**
In a web browser go to github's latest version of the translation file you were just working on. Remember that the directories are organized by the two-letter language codes. So for Spanish ("es"):
[https://github.com/kdmukai/specter-desktop/tree/babel_integration/src/cryptoadvance/specter/translations/es/LC_MESSAGES/messages.po](https://github.com/kdmukai/specter-desktop/tree/babel_integration/src/cryptoadvance/specter/translations/es/LC_MESSAGES/messages.po)
[https://github.com/cryptoadvance/specter-desktop/tree/master/src/cryptoadvance/specter/translations/es/LC_MESSAGES/messages.po](https://github.com/cryptoadvance/specter-desktop/tree/master/src/cryptoadvance/specter/translations/es/LC_MESSAGES/messages.po)
Click on the pencil icon to edit the translation file:

View file

@ -19,9 +19,12 @@
<script type="text/javascript" src="{{ url_for('static', filename='bcur/buffer.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='bcur/urlib.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='bcur/base58.min.js') }}"></script>
{% include "includes/overlay/overlay.html" %}
{% include "includes/qr-code.html" %}
{% include "includes/asset-label.html" %}
{% if not hwi_bridge %}
{# url routes are not defined in hwi_bridge mode. Includes with `url_for` will fail. #}
{% include "includes/overlay/overlay.html" %}
{% include "includes/qr-code.html" %}
{% include "includes/asset-label.html" %}
{% endif %}
{% endif %}
{% include "includes/message-box.html" %}
{% include "includes/tool-tip.html" %}
@ -231,36 +234,40 @@
</main>
</div>
<script type="text/javascript" src="{{ url_for('static', filename='helpers.js') }}"></script>
<script>
async function toggleHideSensitiveInfo() {
showNotification('{{ "Revealing" if specter.hide_sensitive_info else "Hiding"}} sensitive info...', 0);
let url = `{{ url_for('toggle_hide_sensitive_info') }}`;
var formData = new FormData();
formData.append('csrf_token', '{{ csrf_token() }}');
try {
const response = await fetch(
url,
{
method: 'POST',
body: formData
}
);
if(response.status != 200){
showError(await response.text());
return;
}
const jsonResponse = await response.json();
if (jsonResponse.success) {
location.reload();
return
};
showError('Failed to toggle sensitive info mode...')
} catch(e) {
console.log("Caught error: ", e);
showError(e);
}
}
</script>
{% if not hwi_bridge %}
{# url routes are not defined in hwi_bridge mode. `url_for` will fail. #}
<script>
async function toggleHideSensitiveInfo() {
showNotification('{{ "Revealing" if specter.hide_sensitive_info else "Hiding"}} sensitive info...', 0);
let url = `{{ url_for('toggle_hide_sensitive_info') }}`;
var formData = new FormData();
formData.append('csrf_token', '{{ csrf_token() }}');
try {
const response = await fetch(
url,
{
method: 'POST',
body: formData
}
);
if(response.status != 200){
showError(await response.text());
return;
}
const jsonResponse = await response.json();
if (jsonResponse.success) {
location.reload();
return
};
showError('Failed to toggle sensitive info mode...')
} catch(e) {
console.log("Caught error: ", e);
showError(e);
}
}
</script>
{% endif %}
{% block scripts %}
<script>
{% include "includes/language/language_js.jinja" %}