mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
feat: starting to implement translations throughout the UI
This commit is contained in:
parent
7fde4bde46
commit
96e08e44d8
42 changed files with 1547 additions and 750 deletions
File diff suppressed because it is too large
Load diff
1
inst/apps/FreesearchR/www/images/da.svg
Executable file
1
inst/apps/FreesearchR/www/images/da.svg
Executable file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill="#C60C30" d="M32 5H15v11h21V9c0-2.209-1.791-4-4-4zM15 31h17c2.209 0 4-1.791 4-4.5V20H15v11zM0 20v6.5C0 29.209 1.791 31 4 31h7V20H0zM11 5H4C1.791 5 0 6.791 0 9v7h11V5z"/><path fill="#EEE" d="M15 5h-4v11H0v4h11v11h4V20h21v-4H15z"/></svg>
|
||||
|
After Width: | Height: | Size: 306 B |
1
inst/apps/FreesearchR/www/images/en.svg
Executable file
1
inst/apps/FreesearchR/www/images/en.svg
Executable file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill="#00247D" d="M0 9.059V13h5.628zM4.664 31H13v-5.837zM23 25.164V31h8.335zM0 23v3.941L5.63 23zM31.337 5H23v5.837zM36 26.942V23h-5.631zM36 13V9.059L30.371 13zM13 5H4.664L13 10.837z"/><path fill="#CF1B2B" d="M25.14 23l9.712 6.801c.471-.479.808-1.082.99-1.749L28.627 23H25.14zM13 23h-2.141l-9.711 6.8c.521.53 1.189.909 1.938 1.085L13 23.943V23zm10-10h2.141l9.711-6.8c-.521-.53-1.188-.909-1.937-1.085L23 12.057V13zm-12.141 0L1.148 6.2C.677 6.68.34 7.282.157 7.949L7.372 13h3.487z"/><path fill="#EEE" d="M36 21H21v10h2v-5.836L31.335 31H32c1.117 0 2.126-.461 2.852-1.199L25.14 23h3.487l7.215 5.052c.093-.337.158-.686.158-1.052v-.058L30.369 23H36v-2zM0 21v2h5.63L0 26.941V27c0 1.091.439 2.078 1.148 2.8l9.711-6.8H13v.943l-9.914 6.941c.294.07.598.116.914.116h.664L13 25.163V31h2V21H0zM36 9c0-1.091-.439-2.078-1.148-2.8L25.141 13H23v-.943l9.915-6.942C32.62 5.046 32.316 5 32 5h-.663L23 10.837V5h-2v10h15v-2h-5.629L36 9.059V9zM13 5v5.837L4.664 5H4c-1.118 0-2.126.461-2.852 1.2l9.711 6.8H7.372L.157 7.949C.065 8.286 0 8.634 0 9v.059L5.628 13H0v2h15V5h-2z"/><path fill="#CF1B2B" d="M21 15V5h-6v10H0v6h15v10h6V21h15v-6z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
1
inst/apps/FreesearchR/www/images/sw.svg
Executable file
1
inst/apps/FreesearchR/www/images/sw.svg
Executable file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill="#1EB53A" d="M4 5C1.791 5 0 6.791 0 9v15.627L26.456 5H4z"/><path fill="#00A3DD" d="M32 31c2.209 0 4-1.791 4-4V11.33L9.479 31H32z"/><path fill="#141414" d="M32 5h-2.532L0 26.638V27c0 2.209 1.791 4 4 4h2.467L36 9.318V9c0-2.209-1.791-4-4-4z"/><path fill="#FBD035" d="M26.456 5L0 24.627v2.011L29.468 5zM9.479 31L36 11.33V9.318L6.467 31z"/></svg>
|
||||
|
After Width: | Height: | Size: 413 B |
File diff suppressed because one or more lines are too long
|
|
@ -1,3 +1,7 @@
|
|||
---
|
||||
output: html_fragment
|
||||
---
|
||||
|
||||
# Welcome <img src="FreesearchR-logo.png" style="float: right;"/>
|
||||
|
||||
This is the ***FreesearchR*** data analysis tool, a free tool for basic data evaluation and analysis. If you need more advanced tools, start with ***FreesearchR*** and then you'll probably be better off using *R* or similar directly.
|
||||
|
|
|
|||
34
inst/apps/FreesearchR/www/intro_da.html
Normal file
34
inst/apps/FreesearchR/www/intro_da.html
Normal file
File diff suppressed because one or more lines are too long
23
inst/apps/FreesearchR/www/intro_da.md
Normal file
23
inst/apps/FreesearchR/www/intro_da.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
output: html_fragment
|
||||
---
|
||||
|
||||
# Velkommen <img src="FreesearchR-logo.png" style="float: right;"/>
|
||||
|
||||
Dette er ***FreesearchR***-værktøjet, et gratis værktøj til databehandling og -analyse. Har du brug for mere avancerede værktøjer, så kan du starte ***FreesearchR*** og senere selv hente *R* og *RStudio* eller lignende.
|
||||
|
||||
Herunder kan du helt kort se, hvad du kan bruge ***FreesearchR*** til:
|
||||
|
||||
1. **Import data** from a spreadsheet/file on your machine, directly from a [REDCap](https://projectredcap.org/ "Read more on the data capture tool REDCap") server, try it with sample data or access data directly [if run in R locally](https://agdamsbo.github.io/FreesearchR//#run-locally-on-your-own-machine "Read about running FreesearchR on your local machine")
|
||||
|
||||
2. **Prepare** data for analysis by filtering data, modifying variables or create new variables
|
||||
|
||||
3. **Evaluate data** using descriptive analyses methods and inspect cross-correlations as well as [missing observations](https://agdamsbo.github.io/FreesearchR/articles/missingness.html "Read more about missing data")
|
||||
|
||||
4. **Visualise data** by [creating simple, clean plots](https://agdamsbo.github.io/FreesearchR/articles/visuals.html "See available plot types") for overview and quick insights
|
||||
|
||||
5. **Create simple regression models** for even more advanced data analyses
|
||||
|
||||
6. **Download** results as a report, get the modified data set and save the code for learning and to reproduce the results later
|
||||
|
||||
The full [project documentation is here](https://agdamsbo.github.io/FreesearchR/) where you'll find detailed descriptions of the app and link to the source code! If you want to [share feedback, please follow this link to a simple survey](https://redcap.au.dk/surveys/?s=JPCLPTXYDKFA8DA8).
|
||||
33
inst/apps/FreesearchR/www/intro_sw.html
Normal file
33
inst/apps/FreesearchR/www/intro_sw.html
Normal file
File diff suppressed because one or more lines are too long
23
inst/apps/FreesearchR/www/intro_sw.md
Normal file
23
inst/apps/FreesearchR/www/intro_sw.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
output: html_fragment
|
||||
---
|
||||
|
||||
# Karibu <img src="FreesearchR-logo.png" style="float: right;"/>
|
||||
|
||||
This is the ***FreesearchR*** data analysis tool, a free tool for basic data evaluation and analysis. If you need more advanced tools, start with ***FreesearchR*** and then you'll probably be better off using *R* or similar directly.
|
||||
|
||||
With this tool you can:
|
||||
|
||||
1. **Import data** from a spreadsheet/file on your machine, directly from a [REDCap](https://projectredcap.org/ "Read more on the data capture tool REDCap") server, try it with sample data or access data directly [if run in R locally](https://agdamsbo.github.io/FreesearchR//#run-locally-on-your-own-machine "Read about running FreesearchR on your local machine")
|
||||
|
||||
2. **Prepare** data for analysis by filtering data, modifying variables or create new variables
|
||||
|
||||
3. **Evaluate data** using descriptive analyses methods and inspect cross-correlations as well as [missing observations](https://agdamsbo.github.io/FreesearchR/articles/missingness.html "Read more about missing data")
|
||||
|
||||
4. **Visualise data** by [creating simple, clean plots](https://agdamsbo.github.io/FreesearchR/articles/visuals.html "See available plot types") for overview and quick insights
|
||||
|
||||
5. **Create simple regression models** for even more advanced data analyses
|
||||
|
||||
6. **Download** results as a report, get the modified data set and save the code for learning and to reproduce the results later
|
||||
|
||||
The full [project documentation is here](https://agdamsbo.github.io/FreesearchR/) where you'll find detailed descriptions of the app and link to the source code! If you want to [share feedback, please follow this link to a simple survey](https://redcap.au.dk/surveys/?s=JPCLPTXYDKFA8DA8).
|
||||
|
|
@ -1,5 +1,13 @@
|
|||
// Automatically close drop-downs on navigation
|
||||
// Thanks to claude.ai
|
||||
$(document).ready(function() {
|
||||
var language = window.navigator.userLanguage || window.navigator.language;
|
||||
var iso639Language = language.split('-')[0];
|
||||
Shiny.onInputChange('browser_lang', iso639Language);
|
||||
console.log('Browser language:',iso639Language);
|
||||
});
|
||||
|
||||
|
||||
$(document).on('shown.bs.tab', '#main_panel', function(e) {
|
||||
// Close dropdown in this specific navset only
|
||||
$('#main_panel .dropdown-menu').removeClass('show');
|
||||
|
|
@ -8,6 +16,12 @@ $(document).on('shown.bs.tab', '#main_panel', function(e) {
|
|||
|
||||
|
||||
$(document).on('shiny:sessioninitialized', function() {
|
||||
// Function to get browser language
|
||||
// var language = window.navigator.userLanguage || window.navigator.language;
|
||||
// var iso639Language = language.split('-')[0];
|
||||
// Shiny.onInputChange('browser_lang', iso639Language);
|
||||
// console.log('Browser language:',iso639Language);
|
||||
|
||||
// Function to collapse navbar on mobile
|
||||
function collapseNavbar() {
|
||||
var navbar = $('.navbar-collapse');
|
||||
|
|
@ -54,4 +68,7 @@ $(document).on('shiny:sessioninitialized', function() {
|
|||
collapseNavbar();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -123,3 +123,5 @@
|
|||
background-color: #2E2E2E;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue