1
0
Fork 0
mirror of https://github.com/voltbonn/qrcode.volt.link.git synced 2024-06-23 14:30:58 +00:00

added localisation strings for all texts left

This commit is contained in:
thomasrosen 2021-07-05 21:02:21 +02:00
parent 5bc4545751
commit 5471ec6ccf
3 changed files with 34 additions and 13 deletions

View file

@ -5,6 +5,7 @@ website_title = Volt QR-Code Generator
contact = Kontakt
source_code = Quellcode
text_content_input_info = Geb eine URL oder einen anderen Text ein.
text_content_input_placeholder = https:// … oder Text
filetype_headline = Als Vektor (VSG) oder Pixel (PNG) laden
@ -21,5 +22,13 @@ blue = Blau
red = Rot
display_logo_headline = Logo Wassermarke
label_display_logo_yes = Ja
label_display_logo_no = Nein
error_correction_level_headline = Fehlerresistenz
label_error_correction_level_low = Wenig ~7%
label_error_correction_level_medium = Mittel ~15%
label_error_correction_level_quartile = Viertel ~25%
label_error_correction_level_high = Hoch ~30%
download_headline = Herrunterladen

View file

@ -5,6 +5,7 @@ website_title = Volt QR-Code Generator
contact = Contact
source_code = Source Code
text_content_input_info = Enter a URL or other text.
text_content_input_placeholder = https:// … or Text
filetype_headline = Choose between Vector (VSG) or Pixel (PNG) Image.
@ -21,6 +22,17 @@ blue = Blue
red = Red
display_logo_headline = Display Logo
label_display_logo_yes = Yes
label_display_logo_no = No
error_correction_level_headline = Error Resistance
label_error_correction_level_low = Low ~7%
label_error_correction_level_medium = Medium ~15%
label_error_correction_level_quartile = Quartile ~25%
label_error_correction_level_high = High ~30%
download_headline = Download
svg_label = SVG
jpeg_label = JPEG
png_label = PNG

View file

@ -283,11 +283,11 @@ function Generator({ getString }) {
items={[
{
value: 'yes',
title: 'Yes'
title: getString('label_display_logo_yes')
},
{
value: 'no',
title: 'No'
title: getString('label_display_logo_no')
},
]}
/>
@ -303,19 +303,19 @@ function Generator({ getString }) {
items={[
{
value: 'L',
title: 'Low ~7%'
title: getString('label_error_correction_level_low')
},
{
value: 'M',
title: 'Medium ~15%'
title: getString('label_error_correction_level_medium')
},
{
value: 'Q',
title: 'Quartile ~25%'
title: getString('label_error_correction_level_quartile')
},
{
value: 'H',
title: 'High ~30%'
title: getString('label_error_correction_level_high')
},
]}
/>
@ -355,7 +355,7 @@ function Generator({ getString }) {
<h1><Localized id="website_title" /></h1>
<br />
<p>Enter a URL or other text.</p>
<p><Localized id="text_content_input_info" /></p>
<textarea
className={classes.qrcodeContentInput}
placeholder={getString('text_content_input_placeholder')}
@ -374,13 +374,13 @@ function Generator({ getString }) {
qrcode === null
? null
: <>
<span className={classes.qrCodeSvgWrapper} dangerouslySetInnerHTML={{ __html: qrcode }}></span>
<span className={classes.qrCodeSvgWrapper} dangerouslySetInnerHTML={{ __html: qrcode }}></span>
<h2>Download</h2>
<button onClick={handleDownload_svg} className={'green ' + classes.downloadButton}>SVG</button>
<button onClick={handleDownload_jpeg} className={'green ' + classes.downloadButton}>JPEG</button>
<button onClick={handleDownload_png} className={'green ' + classes.downloadButton}>PNG</button>
</>
<h2><Localized id="download_headline" /></h2>
<button onClick={handleDownload_svg} className={'green ' + classes.downloadButton}><Localized id="svg_label" /></button>
<button onClick={handleDownload_jpeg} className={'green ' + classes.downloadButton}><Localized id="jpeg_label" /></button>
<button onClick={handleDownload_png} className={'green ' + classes.downloadButton}><Localized id="png_label" /></button>
</>
}
<canvas style={{display:'none'}} ref={conversion_canvas_ref} />