Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added spanish translation #321

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 135 additions & 0 deletions core/ui/src/main/res/values-es/attrs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) 2022 Kevin Buzeau
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>

<attr format="reference" name="clickSelectorStyle"/>

<attr format="reference" name="conditionSelectorStyle"/>

<attr format="reference" name="areaSelectorStyle"/>

<!-- Color for the inner part of an overlay selector. -->
<attr name="colorInner" format="color" />
<!-- Primary color for the outline part of an overlay selector. -->
<attr name="colorOutlinePrimary" format="color" />
<!-- Secondary color for the outline part of an overlay selector. -->
<attr name="colorOutlineSecondary" format="color" />
<!-- The total thickness in dp of an overlay selector. -->
<attr name="thickness" format="dimension" />
<!-- The color of the background of the selector -->
<attr name="colorBackground" format="color" />

<!-- The radius of the selector corners. -->
<attr name="cornerRadius" format="dimension" />
<!-- The default width of the selector when displayed. -->
<attr name="defaultWidth" format="dimension" />
<!-- The default height of the selector when displayed. -->
<attr name="defaultHeight" format="dimension" />
<!-- The size of the handles around the selector allowing the resize of one edge of the selector. -->
<attr name="resizeHandleSize" format="dimension"/>
<!-- The size of the hints icons. -->
<attr name="hintsIconsSize" format="dimension"/>
<!-- The margin between two hint icons for hints with two icons. -->
<attr name="hintsIconsMargin" format="dimension"/>
<!-- The duration of the fade out animation on the hints in milliseconds. -->
<attr name="hintsFadeDuration" format="integer"/>
<!-- The delay before starting the fade out animation when showing all the hints in milliseconds. -->
<attr name="hintsAllFadeDelay" format="integer"/>
<!-- The drawable for the move Hint. -->
<attr name="hintMoveIcon" format="reference" />
<!-- The drawable for the resize up Hint. -->
<attr name="hintResizeUpIcon" format="reference" />
<!-- The drawable for the resize down Hint. -->
<attr name="hintResizeDownIcon" format="reference" />
<!-- The drawable for the left Hint. -->
<attr name="hintResizeLeftIcon" format="reference" />
<!-- The drawable for the right Hint. -->
<attr name="hintResizeRightIcon" format="reference" />
<!-- The duration of the show selector animation, in milliseconds . -->
<attr name="showSelectorAnimationDuration" format="integer" />

<!-- Styleable attributes for the ClickSelectorView. -->
<declare-styleable name="ClickSelectorView" >
<attr name="colorInner" />
<attr name="colorOutlinePrimary" />
<attr name="colorOutlineSecondary" />
<attr name="colorBackground" />
<attr name="thickness" />
<!-- The radius of the selector circle, in dp. -->
<attr name="radius" format="dimension" />
<!-- The radius of the small circle at the center of the selector, in dp. -->
<attr name="innerRadius" format="dimension" />
</declare-styleable>

<!-- Styleable attributes for the ConditionSelectorView. -->
<declare-styleable name="ConditionSelectorView" >
<attr name="colorInner"/>
<attr name="colorOutlinePrimary"/>
<attr name="colorOutlineSecondary"/>
<attr name="colorBackground"/>
<attr name="thickness" />
<attr name="cornerRadius"/>
<attr name="defaultWidth"/>
<attr name="defaultHeight"/>
<attr name="resizeHandleSize"/>
<attr name="hintsIconsSize"/>
<attr name="hintsIconsMargin"/>
<attr name="hintsFadeDuration"/>
<attr name="hintsAllFadeDelay"/>
<attr name="hintMoveIcon"/>
<attr name="hintResizeUpIcon"/>
<attr name="hintResizeDownIcon"/>
<attr name="hintResizeLeftIcon"/>
<attr name="hintResizeRightIcon"/>
<attr name="showSelectorAnimationDuration"/>

<!-- The drawable for the pinch to zoom Hint. -->
<attr name="hintPinchIcon" format="reference" />
<!-- The margin between the top of the selector and the pinch hint. -->
<attr name="hintsPinchIconMargin" format="dimension"/>
<!-- The duration of the show capture animation, in milliseconds . -->
<attr name="showCaptureAnimationDuration" format="integer" />
<!-- The minimum value for the zoom. Should be between [0f..10f] for reasonable results) -->
<attr name="minimumZoomValue" format="float" />
<!-- The maximum value for the zoom. Should be between [0f..10f] for reasonable results) -->
<attr name="maximumZoomValue" format="float" />
</declare-styleable>

<!-- Styleable attributes for the AreaSelectorView. -->
<declare-styleable name="AreaSelectorView">
<attr name="colorInner"/>
<attr name="colorOutlinePrimary"/>
<attr name="colorOutlineSecondary"/>
<attr name="colorBackground"/>
<attr name="thickness"/>
<attr name="cornerRadius"/>
<attr name="defaultWidth"/>
<attr name="defaultHeight"/>
<attr name="resizeHandleSize"/>
<attr name="hintsIconsSize"/>
<attr name="hintsIconsMargin"/>
<attr name="hintsFadeDuration"/>
<attr name="hintsAllFadeDelay"/>
<attr name="hintMoveIcon"/>
<attr name="hintResizeUpIcon"/>
<attr name="hintResizeDownIcon"/>
<attr name="hintResizeLeftIcon"/>
<attr name="hintResizeRightIcon"/>
<attr name="showSelectorAnimationDuration"/>
</declare-styleable>
</resources>
95 changes: 95 additions & 0 deletions core/ui/src/main/res/values-es/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) 2022 Kevin Buzeau
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<color name="primary">#4CAF50</color>
<color name="accent">#448AFF</color>

<color name="textTitle">#FFFFFF</color>
<color name="textHint">#88FFFFFF</color>
<color name="listBackground">#EAEAEA</color>

<color name="overlayMenuBackground">#77000000</color>
<color name="overlayMenuButtons">#FFFFFF</color>
<color name="overlayViewPrimary">#FFFFFF</color>
<color name="overlayViewAccentPrimary">@color/primary</color>
<color name="overlayViewAccentSecondary">@color/accent</color>
<color name="overlayClickSelectorBackground">#77000000</color>

<!-- Material 3 Theme colors -->
<color name="seed">#388e3c</color>
<color name="md_theme_light_primary">#106D20</color>
<color name="md_theme_light_onPrimary">#FFFFFF</color>
<color name="md_theme_light_primaryContainer">#9DF898</color>
<color name="md_theme_light_onPrimaryContainer">#002204</color>
<color name="md_theme_light_secondary">#52634F</color>
<color name="md_theme_light_onSecondary">#FFFFFF</color>
<color name="md_theme_light_secondaryContainer">#D5E8CE</color>
<color name="md_theme_light_onSecondaryContainer">#111F0F</color>
<color name="md_theme_light_tertiary">#38656A</color>
<color name="md_theme_light_onTertiary">#FFFFFF</color>
<color name="md_theme_light_tertiaryContainer">#BCEBF0</color>
<color name="md_theme_light_onTertiaryContainer">#002023</color>
<color name="md_theme_light_error">#BA1A1A</color>
<color name="md_theme_light_errorContainer">#FFDAD6</color>
<color name="md_theme_light_onError">#FFFFFF</color>
<color name="md_theme_light_onErrorContainer">#410002</color>
<color name="md_theme_light_background">#FCFDF6</color>
<color name="md_theme_light_onBackground">#1A1C19</color>
<color name="md_theme_light_surface">#FCFDF6</color>
<color name="md_theme_light_onSurface">#1A1C19</color>
<color name="md_theme_light_surfaceVariant">#DEE5D8</color>
<color name="md_theme_light_onSurfaceVariant">#424940</color>
<color name="md_theme_light_outline">#72796F</color>
<color name="md_theme_light_inverseOnSurface">#F0F1EB</color>
<color name="md_theme_light_inverseSurface">#2F312D</color>
<color name="md_theme_light_inversePrimary">#82DB7E</color>
<color name="md_theme_light_shadow">#000000</color>
<color name="md_theme_light_surfaceTint">#106D20</color>
<color name="md_theme_light_outlineVariant">#C2C9BD</color>
<color name="md_theme_light_scrim">#000000</color>
<color name="md_theme_dark_primary">#82DB7E</color>
<color name="md_theme_dark_onPrimary">#00390A</color>
<color name="md_theme_dark_primaryContainer">#005312</color>
<color name="md_theme_dark_onPrimaryContainer">#9DF898</color>
<color name="md_theme_dark_secondary">#BACCB3</color>
<color name="md_theme_dark_onSecondary">#253423</color>
<color name="md_theme_dark_secondaryContainer">#3B4B38</color>
<color name="md_theme_dark_onSecondaryContainer">#D5E8CE</color>
<color name="md_theme_dark_tertiary">#A0CFD4</color>
<color name="md_theme_dark_onTertiary">#00363B</color>
<color name="md_theme_dark_tertiaryContainer">#1F4D52</color>
<color name="md_theme_dark_onTertiaryContainer">#BCEBF0</color>
<color name="md_theme_dark_error">#FFB4AB</color>
<color name="md_theme_dark_errorContainer">#93000A</color>
<color name="md_theme_dark_onError">#690005</color>
<color name="md_theme_dark_onErrorContainer">#FFDAD6</color>
<color name="md_theme_dark_background">#1A1C19</color>
<color name="md_theme_dark_onBackground">#E2E3DD</color>
<color name="md_theme_dark_surface">#1A1C19</color>
<color name="md_theme_dark_onSurface">#E2E3DD</color>
<color name="md_theme_dark_surfaceVariant">#424940</color>
<color name="md_theme_dark_onSurfaceVariant">#C2C9BD</color>
<color name="md_theme_dark_outline">#8C9388</color>
<color name="md_theme_dark_inverseOnSurface">#1A1C19</color>
<color name="md_theme_dark_inverseSurface">#E2E3DD</color>
<color name="md_theme_dark_inversePrimary">#106D20</color>
<color name="md_theme_dark_shadow">#000000</color>
<color name="md_theme_dark_surfaceTint">#82DB7E</color>
<color name="md_theme_dark_outlineVariant">#424940</color>
<color name="md_theme_dark_scrim">#000000</color>
</resources>
20 changes: 20 additions & 0 deletions core/ui/src/main/res/values-es/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) 2022 Kevin Buzeau
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<item name="alpha_menu_item_disabled" type="dimen">40%</item>
</resources>
63 changes: 63 additions & 0 deletions core/ui/src/main/res/values-es/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) 2023 Kevin Buzeau
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<dimen name="text_size_item_title">14sp</dimen>
<dimen name="text_size_list_item_text_small">14sp</dimen>
<dimen name="text_size_list_item_text">16sp</dimen>
<dimen name="text_size_list_item_text_big">17sp</dimen>
<dimen name="text_size_large">22sp</dimen>

<dimen name="margin_horizontal_extra_large">32dp</dimen>
<dimen name="margin_horizontal_large">24dp</dimen>
<dimen name="margin_horizontal_default">16dp</dimen>
<dimen name="margin_horizontal_intermediate">12dp</dimen>
<dimen name="margin_horizontal_small">8dp</dimen>
<dimen name="margin_horizontal_mini">4dp</dimen>
<dimen name="margin_vertical_extra_large">16dp</dimen>
<dimen name="margin_vertical_large">12dp</dimen>
<dimen name="margin_vertical_default">8dp</dimen>
<dimen name="margin_vertical_small">4dp</dimen>
<dimen name="margin_vertical_mini">2dp</dimen>

<dimen name="drawable_padding_small">2dp</dimen>

<dimen name="elevation_level_2">3dp</dimen>
<dimen name="elevation_level_3">6dp</dimen>

<dimen name="image_button_size">48dp</dimen>
<dimen name="item_height">48dp</dimen>
<dimen name="item_height_big">62dp</dimen>
<dimen name="item_selector">70dp</dimen>

<dimen name="card_view_width_horizontal_list">100dp</dimen>
<dimen name="card_view_height_horizontal_list">100dp</dimen>

<dimen name="dialog_choice_item_icon_size">32dp</dimen>

<dimen name="android_bottom_navigation_height">80dp</dimen>
<dimen name="margin_fab_secondary_bottom">24dp</dimen>

<dimen name="dropdown_item_icon_size">24dp</dimen>

<dimen name="bottom_sheet_min_height">600dp</dimen>

<dimen name="overlay_menu_btn_size">48dp</dimen>

<!-- This must be equals to android_bottom_navigation_height + 16dp-->
<dimen name="dialog_create_copy_buttons_bottom_margin">96dp</dimen>
</resources>
27 changes: 27 additions & 0 deletions core/ui/src/main/res/values-es/ids.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) 2022 Kevin Buzeau
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<!-- Id for view group containing the menu items in the OverlayMenuController -->
<item name="menu_background" type="id"/>
<!-- Id for view group containing the menu items in the OverlayMenuController -->
<item name="menu_items" type="id"/>
<!-- Id for the move button in the OverlayMenuController -->
<item name="btn_move" type="id"/>
<!-- Id for the hide button in the OverlayMenuController -->
<item name="btn_hide_overlay" type="id"/>
</resources>
21 changes: 21 additions & 0 deletions core/ui/src/main/res/values-es/paths.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) 2022 Kevin Buzeau
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<string name="path_play" translatable="false">M 34 22 L 34 64 L 100 64 L 100 64 Z M 34 106 L 34 64 L 100 64 L 100 64 Z</string>
<string name="path_pause" translatable="false">M 25 33 L 25 56 L 103 56 L 103 33 Z M 25 95 L 25 72 L 103 72 L 103 95 Z</string>
</resources>
Loading