Browse Source

Default translation placeholders while waiting for message loading

master
Mobius K 3 years ago
parent
commit
6abd5f0248
  1. 10
      src/routes/index.pug
  2. 12
      src/templates/layout.pug
  3. 2
      src/templates/major-device.pug
  4. 2
      src/templates/major-service.pug
  5. 4
      src/templates/minor-device.pug

10
src/routes/index.pug

@ -2,20 +2,20 @@ extends ../templates/layout
block content
h1(i18n="bluetoothClass")
h1(i18n="bluetoothClass") BlueTooth class
form
.row.center-align
.input-field.col.s4.offset-s4
input#bluetoothClass.text-center(type="text", readonly, onclick="copyBluetoothClassField()")
span.helper-text(i18n="clickToCopy")
span.helper-text(i18n="clickToCopy") Click to copy
h2(i18n="majorService.group")
h2(i18n="majorService.group") Major service
include ../templates/major-service
h3(i18n="majorDevice.group")
h3(i18n="majorDevice.group") Major device
include ../templates/major-device
h4(i18n="minorDevice.group")
h4(i18n="minorDevice.group") Minor device
include ../templates/minor-device

12
src/templates/layout.pug

@ -8,24 +8,24 @@ html(lang="en")
meta(name="viewport", content="width=device-width, initial-scale=1, shrink-to-fit=no")
meta(name="description", content="Builder for hcitool class codes")
title BlueTooth Class
title(i18n="bluetoothClass") BlueTooth Class
link(rel="shortcut icon", href="/favicon.ico")
link(rel="stylesheet", href="/index.css")
body.container
noscript This application requires JavaScript to run!
main.text-center
block content
.text-center
noscript This application requires JavaScript to run!
main
block content
footer.center-align
div
button#enI18nButton.btn-flat.waves-effect.waves-light(onclick="languageChange('en')") English
button#esI18nButton.btn-flat.waves-effect.waves-light(onclick="languageChange('es')") Español
h5
span(i18n="builtBy")
span(i18n="builtBy") Built by
a(href="https://mobiusk.com") MobiusK
block scripts

2
src/templates/major-device.pug

@ -17,4 +17,4 @@
.col.s12.m6.l4
label(for="majorDevice" + key)
input.with-gap(type="radio", name="majorDevice", id="majorDevice" + key, value=value)
span(i18n="majorDevice." + key)
span(i18n="majorDevice." + key) #{key}

2
src/templates/major-service.pug

@ -16,4 +16,4 @@
.col.s12.m6.l4
label(for="majorService" + key)
input(type="checkbox", id="majorService" + key, value=value)
span(i18n="majorService." + key)
span(i18n="majorService." + key) #{key}

4
src/templates/minor-device.pug

@ -76,7 +76,7 @@
.col.s12.m6.l4
label(for="minorDevice" + groupKey + key)
input.with-gap(type="radio", name="minorDevice" + groupKey, id="minorDevice" + groupKey + key, value=value)
span(i18n="minorDevice." + groupKey + "." + key)
span(i18n="minorDevice." + groupKey + "." + key) #{key}
else
.col.s12
p(i18n="minorDevice.None")
p(i18n="minorDevice.None") No minor devices

Loading…
Cancel
Save