- Latest minutes from {dating} {timing}
+ {i18n.t("phrases.Latest_minutes_from")} {dating} {timing}
{i18n.t("words.Visit")}{" "}
@@ -26,7 +26,7 @@ const Events = (props) => {
target="_blank"
href="https://meetbot.fedoraproject.org/sresults/?group_id=fedora-qa&type=team"
rel="noopener noreferrer">
- meetbot
+ {i18n.t("words.meetbot")}
{" "}
{i18n.t("phrases.to_see_older")}.
diff --git a/src/layout/Masthead.js b/src/layout/Masthead.js
index e428a46..bc889f2 100644
--- a/src/layout/Masthead.js
+++ b/src/layout/Masthead.js
@@ -5,7 +5,6 @@ import {
NavbarBrand,
Navbar,
Button,
- Dropdown,
DropdownToggle,
DropdownMenu,
DropdownItem,
diff --git a/src/translation/en.js b/src/translation/en.js
index 64a06fb..ec7cebb 100644
--- a/src/translation/en.js
+++ b/src/translation/en.js
@@ -7,8 +7,10 @@ export default {
Upgrade: "Upgrade",
Miscellaneous: "Miscellaneous",
Run: "Run",
+ Description: "Description",
Note: "Note:",
final: "Final",
+ Result: "Result",
Visit: "Visit",
enter: "Enter",
notes: "Notes",
@@ -22,6 +24,7 @@ export default {
the: "The",
Desktop: "Desktop",
Base: "Base",
+ or: "or",
Server: "Server",
Cloud: "Cloud",
Bodhi: "Bodhi",
@@ -32,11 +35,83 @@ export default {
Easyfix: "Easyfix",
Manual_Testing: "Manual Testing",
Beginner_Guide: "Beginner Guide",
+ meetbot: "meetbot",
+ primary: "primary",
+ See: "See!",
+ warning: "warning",
+ Expand: "Expand",
+ Workstation: "Workstation",
+ Minimal: "Minimal",
+ for_the: "for the",
+ Testcase: "Testcase",
+ Setup: "Setup",
+ here: "here",
+ missing_results: "missing results.",
+ web_interface: "web-interface",
+ relval: "relval",
+ matrix: "matrix",
+ Edit: "Edit",
+ danger: "danger",
},
phrases: {
+ Tescase_matrix: "Tescase matrix",
+ I_found_a_bug: "I found a bug!",
+ result_fail_your: "result|fail|YOUR_NAME_HERE|BUG_NUMBER|",
+ if_you_dont_like_like_reading:
+ "If you don't feel like reading a wall of text, at least pot together a small document containing:",
+ Awesome_Ideally_read_up_on: " Awesome! Ideally read up on",
+ Study_the: "Study the",
+ package_first: " package first), or modify the",
+ directly_by_clicking_on_the: " directly by clicking on the",
+ result_pass_your: "result|pass|YOUR_NAME_HERE|",
+ link_next_to_the_Matrice_header_and_put: " link next to the Matrice's header, and put",
+ in_the_appropriate_spot: "in the appropriate spot.",
+ dont_have_an: "Don't have an IRC client?",
+ on_command_line: "on command line (make sure to install the",
+ relval_report_results: "relval report-results",
+ Great_Either_use: "Great! Either use",
+ Everything_went_well: "Everything went well",
+ should_give_you_a: "should give you a general idea of what is being tested",
+ if_you_are: " If you are not that familiar with IRC, you can use the",
+ The_testcase_structure_is_not_making_sense: "The testcase structure is not making sense?",
+ Get_your_hands: "Get your hands dirty, and test the hell out of it!",
+ Just_enter_a_Nickname:
+ "just enter a Nickname of your choice, #fedora-qa (including the hash sign) in the Channels field, and click Connect.",
+ The_testcases_are_generally_split_into_four_sections:
+ "The testcases are generally split into four sections:",
+ describes_the_steps: "describes the steps to take before you begin working on the testcase",
+ For_this_particular_testcase: "For this particular testcase,",
+ thoroughly_to_be_sure_you_know_what_to_do: " thoroughly, to be sure you know what to do.",
Bodhi_Karma: "Bodhi Karma",
+ describes_you_to_check:
+ "describe what you should check while testing in order to decide whether it Passed of Failed",
+ How_to_test: "How to test",
+ based_on_the: "Based on the enviromnent, select and download and appropriate ISO",
+ contains_the_individual:
+ "contains the individual steps to take in order to perform the testcase",
Show_me: "Show me",
+ Expected_results: "Expected results",
+ Maybe_you_are_stuck:
+ "Maybe you are stuck, or just do not understand something? Feel free to ask on our IRC channel #fedora-qa at freenode.net",
+ Column_which_usually:
+ "column, which usually means you can use any media/architecture available.",
+ testcases_but_you_can: "testcases, but you can also encouter a generic",
+ Have_a_look:
+ "Have a look at the matrix. The rows are the testcases, and the columns are the environments. Most of the time, these are",
+ missing_results: "missing results.",
+ Should_give_you: "should give you a general idea of what is being tested",
+ briefly_just: " briefly, just to have a general idea of what you will be doing.",
+ Read_the: " Read the",
+ Not_sure_what_that_means: "Not sure what that means?",
+ Not_making_much_sense: "Not making much sense?",
+ Column_which_actually:
+ "column, which usually means you can use any media/architecture available.",
+ ModalBadge:
+ " Have a look at the matrix. The rows are the testcases, and the columns are the environments. Most of the time, these are",
+ Identify_the_testcase_and_environment_in_our:
+ "Identify the testcase and `environment` in our ",
Fedora_Manual_Testing: "Fedora Manual Testing",
+ Not_sure_what_Karma_means: "Not sure what Karma means?",
Preperation_text:
" Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISOLorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO Lorem ipsum some clever text where to get ISO",
Installation_text0:
@@ -50,6 +125,7 @@ export default {
Test_Cases: "Test Cases",
and_or: "and/or",
fedora_easy_karma: "fedora-easy-karma",
+ fedora_Q_a: "
fkfhrry ",
sections_in_the_detailed_output: "sections in the detailed output.",
sudo_dnf_distro_sync: "sudo dnf distro-sync",
Update_Feedback_Guidelines: " Update Feedback Guidelines",
@@ -113,6 +189,9 @@ export default {
IoT_Test_Day: "[F34] IoT Test Day",
ARM_disk_images: "ARM disk images",
Not_sure_how: "Not sure how?",
+ Make_sure_to: "Make sure to read about identifying the environment above.",
+ Most_of_the_time:
+ " Most of the time Workstation Live, or Server DVD are fine, but sometimes there are specific products (e.g. Xfce) to be tested",
to_skip_it: "to skip it.",
repo_by: " repo, by running ",
the_name_of: " The name of the ISO image you used ",
@@ -161,7 +240,7 @@ export default {
users_or_automated:
"Users (or automated systems) can then provide feedback in form of positive/negative Karma, marking the update as working (or not) within the scope of their expectations.",
which_acts_as_a_gatekeeper:
- "which acts as a gatekeeper between new package releases and the stable repositories. ",
+ ", which acts as a gatekeeper between new package releases and the stable repositories. Users (or automated systems) can then provide feedback in form of positive/negative Karma, marking the update as working (or not) within the scope of their expectations. An update can (and usually does) consist of several packages (rpms), that are going through the acceptance process together. ",
Installation_repositories: "Installation repositories",
Release_blocking_environments: "elease-blocking environments ",
Default_boot_and_install: "Default boot and install (x86_64)",
@@ -175,6 +254,7 @@ export default {
Proposed_Blockers: "Proposed Blockers ",
Need_some_tips: "Need some tips?",
Sourceon_Pagure: "Sourceon Pagure",
+ Want_something_a_bit_nicer: "Want something a bit nicer?",
version: "version 0.1.0",
still_not_sure: "Still not sure? Just press ",
when_you_test: "when you test a text-editor, or",
@@ -192,7 +272,7 @@ export default {
blockers_and_FEs: "blockers and FEs",
Visit_meetbot_to_see_older: "Visit meetbot to see older.",
current_development_schedule: "Current development schedule",
- Latest_minutes_from: "Latest minutes from 2021-03-22-15.00",
+ Latest_minutes_from: "Latest minutes from",
i_opened_a_couple: " I opened a couple of tabs, and browsed random pages.",
Branch_Fedora_Linux_34_from_Rawhide: "Branch Fedora Linux 34 from Rawhide",
Advanced_custom_storage_configuration: "Advanced custom storage configuration",
diff --git a/src/wizard/Easyfix.js b/src/wizard/Easyfix.js
index 1ddaa0f..390c40d 100644
--- a/src/wizard/Easyfix.js
+++ b/src/wizard/Easyfix.js
@@ -29,7 +29,11 @@ const EasyfixSection = (props) => {
)
return (
-
+
)
@@ -41,7 +45,11 @@ const EasyfixSection = (props) => {
)
return (
-
+
{subsections}
)
@@ -65,7 +73,11 @@ const EasyfixSection = (props) => {
))
return (
-
+
{links}
)
diff --git a/src/wizard/FedoraEasyKarma.js b/src/wizard/FedoraEasyKarma.js
index 3832782..7274f8a 100644
--- a/src/wizard/FedoraEasyKarma.js
+++ b/src/wizard/FedoraEasyKarma.js
@@ -10,19 +10,18 @@ export default (props) => {
{i18n.t("phrases.What_is_Karma")}
{i18n.t("phrases.Before_a_new_version_of_a_package")}{" "}
-
+
{i18n.t("phrases.the_updates_are")}{" "}
{i18n.t("words.Bodhi")}
- , {i18n.t("phrases.which_acts_as_a_gatekeeper")} {i18n.t("phrases.users_or_automated")}{" "}
- {i18n.t("phrases.an_update_can")}
+ {i18n.t("phrases.which_acts_as_a_gatekeeper")}
{i18n.t("phrases.sure_let_me_do_it")}
{i18n.t("phrases.Fedora_Accounts_System")}{" "}
-
+
{i18n.t("words.Visit")}{" "}
@@ -48,7 +47,7 @@ export default (props) => {
{i18n.t("phrases.choose_an_update")}{" "}
-
+
{i18n.t("phrases.have_a_look_at")}
{i18n.t("phrases.update_testing")} {i18n.t("phrases.repo_by")}
@@ -67,7 +66,7 @@ export default (props) => {
{i18n.t("words.Note")} {i18n.t("phrases.Other_packages_from")}
{i18n.t("phrases.update_testing")}
{i18n.t("phrases.repo_may_be_installed")}{" "}
-
+
{i18n.t("phrases.somtimes_the_update")}.
{i18n.t("words.Run")}{" "}
@@ -76,7 +75,7 @@ export default (props) => {
{i18n.t("phrases.Test_Cases")}, {i18n.t("phrases.and_or")}{" "}
{i18n.t("words.notes")}{" "}
{i18n.t("phrases.sections_in_the_detailed_output")}{" "}
-
+
{i18n.t("phrases.we_already_mentioned_bodhi")}{" "}
{i18n.t("phases.fedora-easy-karma")}
{i18n.t("phrases.interface_for_submitting")}
@@ -96,13 +95,13 @@ export default (props) => {
{i18n.t("words.Run")}
{i18n.t("phrases.fedora_easy_karma_fas_username_FAS_USERNAME")}{" "}
{i18n.t("phrases.and_report_what_you_found_out")}{" "}
-
+
{i18n.t("phrases.it_identifies")}
{i18n.t("phrases.update_testing")}{" "}
{i18n.t("phrases.repository_and_matches")}
{i18n.t("phrases.you_are_then_presented")}{" "}
-
+
{i18n.t("words.enter")}
diff --git a/src/wizard/FedoraManualTesting.js b/src/wizard/FedoraManualTesting.js
index aca861a..473f33a 100644
--- a/src/wizard/FedoraManualTesting.js
+++ b/src/wizard/FedoraManualTesting.js
@@ -1,4 +1,5 @@
import React, { useState } from "react"
+import { useSelector } from "react-redux"
import { Modal, ModalHeader, ModalBody, ModalFooter } from "reactstrap"
import { CollapsableCard, ModalBadge } from "./components"
@@ -22,6 +23,7 @@ const FedoraManualTestingItemsListSub2 = (props) => {
}
export function FedoraManualTestingItemsListSub1(props) {
+ const { i18n } = useSelector((state) => state.locale)
var subsections = Object.keys(props.data).map((k) => (
{k}
@@ -34,65 +36,60 @@ export function FedoraManualTestingItemsListSub1(props) {
switch (props.title) {
case "Installation":
l1 = (
-
- The
Installation testcases generally deal with a part of the
- installation procedure.
+
+ {i18n.t("words.the")} {i18n.t("words.Installation")} {" "}
+ {i18n.t("phrases.Installation_text")}
- You will certainly need an installation ISO, and either a Virtual or Bare-metal machine
- to run the test.
+ {i18n.t("phrases.Installation_text1")}
- Note: some (not that many, though) of these testcases require Bare-metal machine.
- Be sure to read the Description of the testcase carefully.
+ {i18n.t("words.Note")} {i18n.t("phrases.Installation_text2")}
)
break
case "Desktop":
l1 = (
-
- The
Desktop testcases cover basic functionality of the desktop
- environment.
+
+ {i18n.t("words.the")} {i18n.t("words.Desktop")} {" "}
+ {i18n.t("phrases.Desktop_text")}
- You can either install Fedora onto clean Virtual or Bare-metal machine, or use a Live
- image instead.
+ {i18n.t("phrases.Desktop_text1")}
)
break
case "Base":
l1 = (
-
- The
Base testcases cover the system's basic functionality just
- after a clean installation.
+
+ {i18n.t("words.the")} {i18n.t("words.Base")} {" "}
+ {i18n.t("phrases.base_text")}
- Most times, you will be asked to perform a clean Fedora installation. You can use either
- Virtual or Bare-metal machine.
+ {i18n.t("phrases.base_text1")}
- Pro tip: using a snapshot of cleanly installed Virtual machine is just fine. No
- need to reinstall for every testcase.
+ {i18n.t("phrases.Pro_tip")}: {i18n.t("phrases.base_text3")}
)
break
case "Server":
l1 = (
-
- The
Server testcases usually require multiple machines to test the
- server-client behaviour, and might feel a bit advanced.
+
+ {i18n.t("words.the")} {i18n.t("words.Server")} {" "}
+ {i18n.t("phrases.Server_text")}
)
break
case "Cloud":
l1 = (
-
- Even thought the
Cloud testcases are best done in the specific
- environments like EC2 or Openstack, you can also perform them locally using Testcloud.
+
)
break
@@ -108,6 +105,7 @@ export function FedoraManualTestingItemsListSub1(props) {
}
export function FedoraManualTestingItem(props) {
+ const { i18n } = useSelector((state) => state.locale)
const extra_data = props.data.extra_data
const tc_url = extra_data.testcase_url
@@ -126,21 +124,22 @@ export function FedoraManualTestingItem(props) {
case "Base":
environment_examples = (
- Workstation, Server, Xfce or Minimal
+ {i18n.t("words.Workstation")}, {i18n.t("words.Server")},{" "}
+ Xfce {i18n.t("words.or")} {i18n.t("words.Minimal")}
)
break
case "Desktop":
environment_examples = (
- Workstation or KDE
+ {i18n.t("words.Workstation")} {i18n.t("words.or")} KDE
)
break
case "Server":
environment_examples = (
- x86_64 or aarch64
+ x86_64 {i18n.t("words.or")} aarch64
)
break
@@ -154,84 +153,82 @@ export function FedoraManualTestingItem(props) {
- Identify the testcase and `environment` in our{" "}
+ {i18n.t("phrases.Identify_the_testcase_and_environment_in_our")}
- Tescase matrix
+ {i18n.t("phrases.Tescase_matrix")}
{" "}
-
+
- Have a look at the matrix. The rows are the testcases, and the columns are the
- environments. Most of the time, these are {environment_examples} for the {testtype}{" "}
- testcases, but you can also encouter a generic Result column, which
- usually means you can use any media/architecture available.
+ {i18n.t("phrases.ModalBadge")} {environment_examples} {i18n.t("words.for_the")}{" "}
+ {testtype} {i18n.t("phrases.testcase_but_you_can")}{" "}
+ {i18n.t("words.Result")} {i18n.t("phrases.Column_which_actually")}
- For this particular testcase, {extra_data.envs.join(", ")}{" "}
- {extra_data.envs.length > 1 ? "environments are" : "environment is"} missing
- results.
+ {i18n.t("phrases.For_this_particular_testcase")}{" "}
+ {extra_data.envs.join(", ")}{" "}
+ {extra_data.envs.length > 1 ? "environments are" : "environment is"}{" "}
+ {i18n.t("phrases.missing_results")}
- Read the{" "}
+ {i18n.t("phrases.Read_the")}{" "}
- Testcase
+ {i18n.t("words.Testcase")}
{" "}
- briefly, just to have a general idea of what you will be doing.{" "}
-
- The testcases are generally split into four sections:
+ {i18n.t("phrases.briefly_just")}{" "}
+
+ {i18n.t("phrases.The_testcases_are_generally_split_into_four_sections")}
- Description should give you a general idea of what is being tested
+ {i18n.t("words.Description")} {i18n.t("phrases.Should_give_you")}
- Setup describes the steps to take before you begin working on the
- testcase
+ {i18n.t("words.Setup")} {i18n.t("phrases.describes_the_steps")}
- How to test contains the individual steps to take in order to
- perform the testcase
+ {i18n.t("phrases.How_to_test")} {" "}
+ {i18n.t("phrases.contains_the_individual")}
- Expected results describe what you should check while testing in
- order to decide whether it Passed of Failed
+ {i18n.t("phrases.Expected_results")} {" "}
+ {i18n.t("phrases.describes_you_to_check")}
- Based on the enviromnent, select and download and appropriate ISO{" "}
+ {i18n.t("phrases.based_on_the")}{" "}
- here
+ {i18n.t("words.here")}
.{" "}
-
+
+ {i18n.t("phrases.Most_of_the_time")}
- Most of the time Workstation Live, or Server DVD are fine, but sometimes there are
- specific products (e.g. Xfce) to be tested
-
-
- Make sure to read about identifying the environment above.{" "}
-
+ {i18n.t("phrases.Make_sure_to")}{" "}
+
- Have a look at the matrix. The rows are the testcases, and the columns are
- the environments. Most of the time, these are {environment_examples} for the{" "}
- {testtype} testcases, but you can also encouter a generic Result{" "}
- column, which usually means you can use any media/architecture available.
+ {i18n.t("phrases.Have_a_look")} {environment_examples}{" "}
+ {i18n.t("words.for_the")} {testtype}{" "}
+ {i18n.t("phrases.testcases_but_you_can")}{" "}
+ {i18n.t("words.Result")}{" "}
+ {i18n.t("phrases.Column_which_usually")}
- For this particular testcase, {extra_data.envs.join(", ")}{" "}
- {extra_data.envs.length > 1 ? "environments are" : "environment is"} missing
- results.
+ {i18n.t("phrases.For_this_particular_testcase")}
+ {extra_data.envs.join(", ")}{" "}
+ {extra_data.envs.length > 1 ? "environments are" : "environment is"}{" "}
+ {i18n.t("phrases.missing_results")}
@@ -241,107 +238,104 @@ export function FedoraManualTestingItem(props) {
- Study the{" "}
+ {i18n.t("phrases.Study_the")}{" "}
- Testcase
+ {i18n.t("words.Testcase")}
{" "}
- thoroughly, to be sure you know what to do.{" "}
+ {i18n.t("phrases.thoroughly_to_be_sure_you_know_what_to_do")}{" "}
- The testcase structure is not making sense?{" "}
+ {i18n.t("phrases.The_testcase_structure_is_not_making_sense")}{" "}
- The testcases are generally split into four sections:
+ {i18n.t("phrases.The_testcases_are_generally_split_into_four_sections")}
- Description should give you a general idea of what is being
- tested
+ {i18n.t("words.Description")} {" "}
+ {i18n.t("phrases.should_give_you_a")}
- Setup describes the steps to take before you begin working
- on the testcase
+ {i18n.t("words.Setup")} {" "}
+ {i18n.t("phrases.describes_the_steps")}
- How to test contains the individual steps to take in order
- to perform the testcase
+ {i18n.t("phrases.How_to_test")} {" "}
+ {i18n.t("phrases.contains_the_individual")}
- Expected results describe what you should check while
- testing in order to decide whether it Passed of Failed
+ {i18n.t("phrases.Expected_results")} {" "}
+ {i18n.t("phrases.describes_you_to_check")}
- Maybe you are stuck, or just do not understand something? Feel free to ask on our
- IRC channel #fedora-qa at freenode.net{" "}
-
- If you are not that familiar with IRC, you can use the{" "}
+ {i18n.t("phrases.Maybe_you_are_stuck")}{" "}
+
+ {i18n.t("phrases.if_you_are")}{" "}
- web-interface
+ {i18n.t("words.web_interface")}
{" "}
- just enter a Nickname of your choice, #fedora-qa (including the hash sign) in the
- Channels field, and click Connect.
+ {i18n.t("phrases.Just_enter_a_Nickname")}
- Get your hands dirty, and test the hell out of it!
+ {i18n.t("phrases.Get_your_hands")}
-
- Great! Either use relval report-results on command line (make sure to
- install the relval package first), or modify the{" "}
+
+ {i18n.t("phrases.Great_Either_use")}{" "}
+ {i18n.t("phrases.relval_report_results")}{" "}
+ {i18n.t("phrases.on_command_line")} {i18n.t("words.relval")}
+ {i18n.t("phrases.package_first")}{" "}
- matrix
+ {i18n.t("words.matrix")}
{" "}
- directly by clicking on the Edit link next to the Matrice's header, and
- put {{result|pass|YOUR_NAME_HERE|}} in the appropriate
- spot.
+ {i18n.t("phrases.directly_by_clicking_on_the")} {i18n.t("words.Edit")}{" "}
+ {i18n.t("phrases.link_next_to_the_Matrice_header_and_put")}{" "}
+ {{{i18n.t("phrases.result_pass_your")}}}{" "}
+ {i18n.t("phrases.in_the_appropriate_spot")}
-
- Awesome! Ideally read up on https://fedoraproject.org/wiki/How_to_file_a_bug_report
+
+ {i18n.t("phrases.Awesome_Ideally_read_up_on")}{" "}
+ https://fedoraproject.org/wiki/How_to_file_a_bug_report
- If you don't feel like reading a wall of text, at least pot together a small document
- containing:
+ {i18n.t("phrases.if_you_dont_like_like_reading")}
+ {i18n.t("phrases.brief_description_of_what")}
- Brief description of what went wrong (e.g. "QA:Testcase_dualboot_with_windows -
- Bootloader does not show the Windows option")
-
-
- The name of the ISO image you used (e.g.
+ {i18n.t("phrases.the_name_of")} (e.g.
"Fedora-Server-netinst-i386-Rawhide-20181227.n.0.iso")
+ {i18n.t("phrases.note_what_you_did")}
+ {i18n.t("phrases.try_to_reproduce_the")}
- Note what you did, as precisely as possible, in a step-by-step fashion. Even
- details like "Chose Polish as the languae for the installation process" can matter.
-
-
- Try to reproduce the same state again based on the steps above (you can also
- experiment a bit, and try to come up with just the critical steps)
-
-
- Share your notes on the internet (you can use fpaste), and ask for help with filing
- the bug report on our IRC channel #fedora-qa at freenode.net{" "}
+ {i18n.t("phrases.share_your_notes_on_the")}{" "}
- If you are not that familiar with IRC, you can use the web-interface[link] just
- enter a Nickname of your choice, #fedora-qa (including the hash sign) in the
- Channels field, and click Connect.
+ {i18n.t("phrases.if_you_are_not_familiar")}
- Once you get the Bug reported, make sure to also submit the result into the testing
- matrix. Either use relval report-results on command line (make sure to
- install the relval package first), or modify the{" "}
+ {i18n.t("phrases.once_you_get_the_bug_reported")}{" "}
+ {i18n.t("phrases.relval_report_results")}{" "}
+ {i18n.t("phrases.on_command_line")} {i18n.t("words.relval")}{" "}
+ {i18n.t("phrases.package_first")}{" "}
- matrix
+ {i18n.t("words.matrix")}
{" "}
- directly by clicking on the Edit link next to the Matrice's header, and
- put {{result|fail|YOUR_NAME_HERE|BUG_NUMBER|}} in the
- appropriate spot.
+ {i18n.t("phrases.directly_by_clicking_on_the")} {i18n.t("words.Edit")}{" "}
+ {i18n.t("phrases.link_next_to_the_Matrice_header_and_put")}{" "}
+ {{{i18n.t("phrases.result_fail_your")}}}{" "}
+ {i18n.t("phrases.in_the_appropriate_spot")}
From 74da40d44c2c7c4eb6c0d754b490ee1dae974c0d Mon Sep 17 00:00:00 2001
From: manisha
Date: Aug 04 2021 10:29:57 +0000
Subject: [PATCH 3/11] selected language is added to the label
---
diff --git a/src/index.css b/src/index.css
index aef45f7..910c14b 100644
--- a/src/index.css
+++ b/src/index.css
@@ -285,5 +285,5 @@ ol.steps > li {
position: relative;
display: inline-flex;
vertical-align: middle;
- padding-left: 39em;
+ padding-right: 1em;
}
diff --git a/src/layout/Masthead.js b/src/layout/Masthead.js
index bc889f2..8295705 100644
--- a/src/layout/Masthead.js
+++ b/src/layout/Masthead.js
@@ -1,4 +1,4 @@
-import React, { useState } from "react"
+import React, { useEffect, useState } from "react"
import { Link, useLocation } from "react-router-dom"
import {
Container,
@@ -24,9 +24,17 @@ import { shallowEqual, useDispatch, useSelector } from "react-redux"
const selectWizardFromStore = (state) => state.wizard.api_call_status
const selectLandingPageFromStore = (state) => state.landing_page.api_call_status
+const language = [
+ {
+ lang: "en",
+ name: "english",
+ },
+]
+
const Masthead = () => {
const { i18n } = useSelector((state) => state.locale)
const [dropdownOpen, setDropdownOpen] = useState(false)
+ const [lang, setLang] = useState("")
const location = useLocation()
const dispatch = useDispatch()
@@ -66,9 +74,15 @@ const Masthead = () => {
}
const handleClick = (lang) => {
+ setLang(lang)
dispatch(changeLanguage(lang))
}
+ useEffect(() => {
+ const language = localStorage.getItem("locale")
+ setLang(language)
+ }, [])
+
const toggle = () => setDropdownOpen((prevState) => !prevState)
return (
@@ -79,16 +93,7 @@ const Masthead = () => {
- {ROUTE.LANDING_PAGE === location.pathname && (
-
- {i18n.t("phrases.select_language")}
-
- handleClick("en")}>
- {i18n.t("words.english")}
-
-
-
- )}
+
{api_call_status() === API_CALL_STATUS_VALUES.STARTED ||
api_call_status() === API_CALL_STATUS_VALUES.RETRYING ? (
@@ -119,6 +124,18 @@ const Masthead = () => {
)}
>
)}
+ {ROUTE.LANDING_PAGE === location.pathname && (
+
+
+ {lang ? lang : i18n.t("phrases.select_language")}
+
+
+ {language.map((item) => (
+ handleClick(item.lang)}>{item.name}
+ ))}
+
+
+ )}
{ROUTE.LANDING_PAGE === location.pathname && (
From e2157dc070906d19ffbe1ac6ddb17931666d2dc3 Mon Sep 17 00:00:00 2001
From: manisha
Date: Aug 06 2021 14:40:39 +0000
Subject: [PATCH 4/11] removed splits
---
diff --git a/src/translation/en.js b/src/translation/en.js
index ec7cebb..d6507cd 100644
--- a/src/translation/en.js
+++ b/src/translation/en.js
@@ -1,4 +1,63 @@
export default {
+ Installation_text:
+ "The <1>Installation1> testcases generally deal with a part of the installation procedure.<2 /> You will certainly need an installation ISO, and either a Virtual or Bare-metal machine to run the test.<2 /> <3>Note:3> some (not that many, though) of these testcases require Bare-metal machine. Be sure to read the Description of the testcase carefully.",
+ Desktop_Text:
+ "The <1>Desktop1> testcases cover basic functionality of the desktop environment.<2 /> You can either install Fedora onto clean Virtual or Bare-metal machine, or use a Live image instead.",
+ Base_Text:
+ "The <1>Base1> testcases cover the system's basic functionality just after a clean installation. <2 /> Most times, you will be asked to perform a clean Fedora installation. You can use either Virtual or Bare-metal machine. <2 /><3>Pro tip:3> using a snapshot of cleanly installed Virtual machine is just fine. Noneed to reinstall for every testcase.",
+ Server_Text:
+ "The <1>Server1> testcases usually require multiple machines to test the server-client behaviour, and might feel a bit advanced.",
+ cloud_Text:
+ "Even thought the <1>Cloud1> testcases are best done in the specific environments like EC2 or Openstack, you can also perform them locally using Testcloud.<2 />Have a look at the <3 target=_blank rel=noopener noreferrer href=https://fedoraproject.org/wiki/Test_Results:Fedora_Current_Cloud#Cloud_Provider_Setup> Cloud provider setup3>guides for more details.",
+ What_is_Karma_Text:
+ "The updates are kept in <1 target=_blank rel=noopener noreferrer href=https://bodhi.fedoraproject.org/> Bodhi, which acts as a gatekeeper between new package releases and the stable repositories. Users (or automated systems) can then provide feedback in form of positive/negative Karma, marking the update as working (or not) within the scope of their expectations. Anupdate can (and usually does) consist of several packages (rpms), that are going throughthe acceptance process together.",
+ Make_sure_you: "Make sure your system is up-to-date: <1>sudo dnf update --refresh1>",
+ Install_fedora_easy_karma_tool:
+ "Install fedora-easy-karma tool: <1>sudo dnf install fedora-easy-karma1>",
+ Have_a_look:
+ "Have a look at the available packages in <1>updates-testing1> repo, by running <1>dnf --enablerepo=updates-testing list --refresh --upgrades1> and choose a package you know.",
+ Install_the_packages:
+ "Install the package <1>sudo dnf --enablerepo=updates-testing update PACKAGE_NAME 1>, and test whether it works, as you would expect.<2 /> <2> Note:2> Other packages from <1>updates-testing1> repo may be installed as dependencies (shown during the installation process). Try to test those too, if possible. ",
+ Sometimes_the_update:
+ "Sometimes, the update associated with the package you just installed fixes some specific bugs, or has testcases associated with it. <1 /> Run <2>fedora-easy-karma --fas-username=FAS_USERNAME2>, and look for <2>Bugs2>, <2>Test Cases2>, and/or Notes sections in the detailed output, ",
+ We_already_mentioned_bodhi:
+ "We already mentioned Bodhi, several times. Instead of using the <1>fedora-easy-karma1> interface for submitting Karma and/or learning about the Update, you can visit Bodhi directly. <2 /> <1>fedora-easy-karma1> shows the URL of the relevant update near the bottom of the text output - look for URL like <2>https://bodhi.fedoraproject.org/updates/FEDORA-2019-00870e8bfc2>. <1 /> You can have a look at other people's comments, the afore-mentioned Bugs or Test Cases, and even submit the Karma directly. Just use your FAS credentials to log-in.",
+ Run_fedora_easy_karam:
+ "Run <1>fedora-easy-karma --fas-username=FAS_USERNAME1> and report what you found out. ",
+ It_identifies_installed:
+ "It identifies the packages installed from the <1>updates-testing1> repository, and matches them to the updates in Bodhi. <2 /> You are then presented with the relevant updates one-by-one, to submit Karma and a comment.",
+ Enter_to_mark_positive:
+ "Enter <1>11> to mark positive karma (the update works just fine, as far as you can tell), or <1>-11> to mark the package as broken. <2 /> Not sure you can judge the package's state? Have a look at the <3 target=_blank href=https://fedoraproject.org/wiki/QA:Update_feedback_guidelines rel=noopener noreferrer> Update Feedback Guidelines 3> <2 /> Still not sure? Just press <1>Enter1> to skip it.",
+ Add_a_comment_even_if:
+ "Add a comment - even if it works, try to describe what you tested. It can be as easy as <1>I tried openning and editing a document, and it worked.1> when you test a text-editor, or <1>I opened a couple of tabs, and browsed random pages.1> for a web-browser. <2 /> Absolutely make sure to provide reasonable amount of detail, when submitting negative karma - ideally, you should also create a bugreport, and reference it in the comment.",
+ Restore_the_stable:
+ "Restore the stable-packages on your system by running <1>sudo dnf distro-sync1>",
+ Identify_The_Testcase:
+ "Identify the testcase and `environment` in our <1 target=_blank rel=noopener noreferrer href={matrix_url}> Tescase matrix 1>.",
+ Have_a_look_at_the_matrix:
+ "Have a look at the matrix. The rows are the testcases, and the columns are the environments. Most of the time, these are {environment_examples} for the {testtype} testcases, but you can also encouter a generic <1>Result1> column, which usually means you can use any media/architecture available.",
+ for_this_perticular:
+ "For this particular testcase, <1>{extra_data.envs.join(, )}1> {extra_data.envs.length > 1 ? environments are : environment is missing results.",
+ Read_the_TestCase:
+ "Read the <1 target=_blank rel=noopener noreferrer href={tc_url}> Testcase 1> briefly, just to have a general idea of what you will be doing.",
+ Description_Text: "<1>Description1> should give you a general idea of what is being tested",
+ Setup_Text: "<1>Setup1> describes the steps to take before you begin working on the testcase",
+ How_to_Test:
+ "<1>How to test1> contains the individual steps to take in order to perform the testcase",
+ Expected_Results:
+ "<1>Expected results1> describe what you should check while testing in order to decide whether it Passed of Failed",
+ study_the_testcase:
+ "Study the <1 target=_blank rel=noopener noreferrer href={tc_url}> Testcase1> thoroughly, to be sure you know what to do.",
+ If_you_are_not_familiar:
+ "If you are not that familiar with IRC, you can use the <1 target=_blank rel=noopener noreferrer href=http://webchat.freenode.net> web-interface 1> just enter a Nickname of your choice, #fedora-qa (including the hash sign) in the Channels field, and click Connect.",
+ Great_either_use:
+ "Great! Either use <1>relval report-results1> on command line (make sure to install the <1>relval1> package first), or modify the <2 target=_blank rel=noopener noreferrer href={matrix_url}>matrix2> directly by clicking on the <1>Edit1> link next to the Matrice's header, andput <1>{{result|pass|YOUR_NAME_HERE|}}1> in theappropriate spot.",
+ Awesome_ideally_read:
+ "Awesome! Ideally read up on https://fedoraproject.org/wiki/How_to_file_a_bug_report <1 /> If you don't feel like reading a wall of text, at least pot together a small document containing:",
+ Once_you_get_the_bug:
+ " Once you get the Bug reported, make sure to also submit the result into the testing matrix. Either use <1>relval report-results1> on command line (make sure to install the <1>relval1> package first), or modify the <2 target=_blank rel=noopener noreferrer href={matrix_url}>matrix 2> directly by clicking on the <1>Edit1> link next to the Matrice's header, and put <1>{{result|fail|YOUR_NAME_HERE|BUG_NUMBER|}}1> in the appropriate spot.",
+ Share_your_notes:
+ "Share your notes on the internet (you can use fpaste), and ask for help with filing the bug report on our IRC channel #fedora-qa at freenode.net <1 expand_text=Don't have an IRC client?> If you are not that familiar with IRC, you can use the web-interface[link] just enter a Nickname of your choice, #fedora-qa (including the hash sign) in the Channels field, and click Connect. 1>",
words: {
hello: "Hello",
disable: "Disable",
@@ -56,6 +115,7 @@ export default {
phrases: {
Tescase_matrix: "Tescase matrix",
I_found_a_bug: "I found a bug!",
+ Feeling_a_bit_lost: "Feeling a bit lost?",
result_fail_your: "result|fail|YOUR_NAME_HERE|BUG_NUMBER|",
if_you_dont_like_like_reading:
"If you don't feel like reading a wall of text, at least pot together a small document containing:",
@@ -96,13 +156,11 @@ export default {
Column_which_usually:
"column, which usually means you can use any media/architecture available.",
testcases_but_you_can: "testcases, but you can also encouter a generic",
- Have_a_look:
- "Have a look at the matrix. The rows are the testcases, and the columns are the environments. Most of the time, these are",
missing_results: "missing results.",
Should_give_you: "should give you a general idea of what is being tested",
briefly_just: " briefly, just to have a general idea of what you will be doing.",
Read_the: " Read the",
- Not_sure_what_that_means: "Not sure what that means?",
+ Not_sure_what_that_means: " Not sure what that means?",
Not_making_much_sense: "Not making much sense?",
Column_which_actually:
"column, which usually means you can use any media/architecture available.",
@@ -130,24 +188,14 @@ export default {
sudo_dnf_distro_sync: "sudo dnf distro-sync",
Update_Feedback_Guidelines: " Update Feedback Guidelines",
sudo_dnf_install_fedora_easy_karma: "sudo dnf install fedora-easy-karma",
- dnf_enablerepo_updates_testing_list_refresh_upgrades:
- "dnf --enablerepo=updates-testing list --refresh --upgrades",
cloud_text: " Even thought the",
Cloud_provider_setup: " Cloud provider setup",
- sudo_dnf_enablerepo_updates_testing_update_PACKAGE_NAME:
- "sudo dnf --enablerepo=updates-testing update PACKAGE_NAME",
- fedora_easy_karma_fas_username_FAS_USERNAME: "fedora-easy-karma --fas-username=FAS_USERNAME",
guides_for_more_details: " guides for more details.",
is_a_group: "Is a group containing several projects. Expand to see more.",
cloud_text1:
"testcases are best done in the specific environments like EC2 or Openstack, you can also perform them locally using Testcloud.",
Failed_to_fetch_data: "Failed to fetch data!",
cloud_text2: "Have a look at the",
- Installation_text: "testcases generally deal with a part of the installation procedure.",
- Installation_text1:
- "You will certainly need an installation ISO, and either a Virtual or Bare-metal machine to run the test.",
- Installation_text2:
- "some (not that many, though) of these testcases require Bare-metal machine. Be sure to read the Description of the testcase carefully.",
select_language: "Select Language",
base_text: "testcases cover the system's basic functionality just after a clean installation.",
on_Pagure: "on Pagure",
@@ -191,7 +239,7 @@ export default {
Not_sure_how: "Not sure how?",
Make_sure_to: "Make sure to read about identifying the environment above.",
Most_of_the_time:
- " Most of the time Workstation Live, or Server DVD are fine, but sometimes there are specific products (e.g. Xfce) to be tested",
+ "Most of the time Workstation Live, or Server DVD are fine, but sometimes there are specific products (e.g. Xfce) to be tested",
to_skip_it: "to skip it.",
repo_by: " repo, by running ",
the_name_of: " The name of the ISO image you used ",
@@ -199,15 +247,12 @@ export default {
is_a_group_containing: " - Is a group containing several projects. Expand to see more.",
note_what_you_did:
"Note what you did, as precisely as possible, in a step-by-step fashion. Even details like 'Chose Polish as the languae for the installation process' can matter.",
- share_your_notes_on_the:
- "Share your notes on the internet (you can use fpaste), and ask for help with filing the bug report on our IRC channel #fedora-qa at freenode.net",
if_you_are_not_familiar:
"If you are not that familiar with IRC, you can use the web-interface[link] just enter a Nickname of your choice, #fedora-qa (including the hash sign) in the Channels field, and click Connect.",
you_can_either_install:
"You can either install Fedora onto clean Virtual or Bare-metal machine, or use a Live image instead.",
the_updates_are: "The updates are kept in",
- interface_for_submitting:
- "interface for submitting Karma and/or learning about the Update, you can visit Bodhi directly.",
+
and_choose_a: "and choose a package you know.",
and_create_it: "and create it.",
brief_description_of_what:
@@ -215,12 +260,8 @@ export default {
try_to_reproduce_the:
"Try to reproduce the same state again based on the steps above (you can also experiment a bit, and try to come up with just the critical steps)",
choose_an_update: "Choose an update to test",
- have_a_look_at: "Have a look at the available packages in ",
- make_sure_your: "Make sure your system is up-to-date: ",
note_the_user: "Note the username and password, you will need it later on.",
sure_let_me_do_it: "Sure, let me do it!",
- somtimes_the_update:
- " Sometimes, the update associated with the package you just installed fixes some specific bugs, or has testcases associated with it",
an_update_can:
"An update can (and usually does) consist of several packages (rpms), that are going through the acceptance process together.",
Audio_Test_Day: "[F34] Audio Test Day",
@@ -228,15 +269,10 @@ export default {
and_report_what_you_found_out: "and report what you found out.",
Install_the_package: "Install the package",
repository_and_matches: "repository, and matches them to the updates in Bodhi.",
- and_test_whether_it_works: "and test whether it works, as you would expect.",
Fedora_Media_Writer: "Fedora Media Writer",
Choose_an_update_to_test: "Choose an update to test",
- Install_fedora: "Install fedora-easy-karma tool: ",
once_you_get_the_bug_reported:
"Once you get the Bug reported, make sure to also submit the result into the testing matrix. Either use",
- we_already_mentioned_bodhi: "We already mentioned Bodhi, several times. Instead of using the",
- repo_may_be_installed:
- " repo may be installed as dependencies (shown during the installation process). Try to test those too, if possible.",
users_or_automated:
"Users (or automated systems) can then provide feedback in form of positive/negative Karma, marking the update as working (or not) within the scope of their expectations.",
which_acts_as_a_gatekeeper:
diff --git a/src/wizard/FedoraEasyKarma.js b/src/wizard/FedoraEasyKarma.js
index 7274f8a..ffb83d4 100644
--- a/src/wizard/FedoraEasyKarma.js
+++ b/src/wizard/FedoraEasyKarma.js
@@ -1,21 +1,30 @@
import React from "react"
import { useSelector } from "react-redux"
import { CollapsableBadge, ModalBadge } from "./components"
+import { Trans } from "react-i18next"
export default (props) => {
const { i18n } = useSelector((state) => state.locale)
+
if (props.data === undefined) return null
else
return (
{i18n.t("phrases.What_is_Karma")}
- {i18n.t("phrases.Before_a_new_version_of_a_package")}{" "}
-
- {i18n.t("phrases.the_updates_are")}{" "}
-
- {i18n.t("words.Bodhi")}
-
- {i18n.t("phrases.which_acts_as_a_gatekeeper")}
+ Before a new version of a package is pushed to the Fedora's Updates repository, it
+ needs to be tested and proved functional.{" "}
+
+
+ The updates are kept in{" "}
+
+ Bodhi
+
+ , which acts as a gatekeeper between new package releases and the stable repositories.{" "}
+ Users (or automated systems) can then provide feedback in form of positive/negative
+ Karma, marking the update as working (or not) within the scope of their expectations.
+ An update can (and usually does) consist of several packages (rpms), that are going
+ through the acceptance process together.
+
{i18n.t("phrases.sure_let_me_do_it")}
@@ -29,112 +38,125 @@ export default (props) => {
target="_blank"
rel="noopener noreferrer"
href="https://admin.fedoraproject.org/accounts/user/new">
- {i18n.t("phrases.FAS_Sign_up_page")}
+ FAS Sign-up page
{" "}
{i18n.t("phrases.and_create_it")}
- {i18n.t("phrases.note_the_user")} {" "}
+ {i18n.t("phrases.note_the_user")}
- {i18n.t("phrases.make_sure_your")}
- {i18n.t("phrases.sudo_dnf_update_refresh")}
+
+ Make sure your system is up-to-date: sudo dnf update --refresh
+
- {i18n.t("phrases.Install_fedora")}
- {i18n.t("phrases.sudo_dnf_install_fedora_easy_karma")}
+
+ Install fedora-easy-karma tool: sudo dnf install fedora-easy-karma
+
{i18n.t("phrases.choose_an_update")}{" "}
- {i18n.t("phrases.have_a_look_at")}
- {i18n.t("phrases.update_testing")} {i18n.t("phrases.repo_by")}
-
- {i18n.t("phrases.dnf_enablerepo_updates_testing_list_refresh_upgrades")}
- {" "}
- {i18n.t("phrases.and_choose_a")}
+
+ Have a look at the available packages in updates-testing repo, by
+ running dnf --enablerepo=updates-testing list --refresh --upgrades and
+ choose a package you know.
+
- {i18n.t("phrases.Install_the_package")}{" "}
-
- {i18n.t("phrases.sudo_dnf_enablerepo_updates_testing_update_PACKAGE_NAME")}
-
- , {i18n.t("phrases.and_test_whether_it_works")}
-
- {i18n.t("words.Note")} {i18n.t("phrases.Other_packages_from")}
- {i18n.t("phrases.update_testing")}
- {i18n.t("phrases.repo_may_be_installed")}{" "}
-
- {i18n.t("phrases.somtimes_the_update")}.
+
+ Install the package{" "}
+ sudo dnf --enablerepo=updates-testing update PACKAGE_NAME, and test
+ whether it works, as you would expect.
- {i18n.t("words.Run")}{" "}
- {i18n.t("phrases.fedora_easy_karma_fas_username_FAS_USERNAME")},
- {i18n.t("phrases.and_look_for")} {i18n.t("words.Bugs")},{" "}
- {i18n.t("phrases.Test_Cases")}, {i18n.t("phrases.and_or")}{" "}
- {i18n.t("words.notes")}{" "}
- {i18n.t("phrases.sections_in_the_detailed_output")}{" "}
-
- {i18n.t("phrases.we_already_mentioned_bodhi")}{" "}
- {i18n.t("phases.fedora-easy-karma")}
- {i18n.t("phrases.interface_for_submitting")}
-
-
- {" "}
- {i18n.t("phrases.")} {i18n.t("phases.fedora-easy-karma")}
- {" "}
- {i18n.t("phrases.shows_the_URL")}{" "}
- https://bodhi.fedoraproject.org/updates/FEDORA-2019-00870e8bfc.
+ Note: Other packages from updates-testing repo may be
+ installed as dependencies (shown during the installation process). Try to test those
+ too, if possible.{" "}
+
+
+
+
+ Sometimes, the update associated with the package you just installed fixes some
+ specific bugs, or has testcases associated with it.
- {i18n.t("phrases.you_can_have_a_look")}
+ Run fedora-easy-karma --fas-username=FAS_USERNAME, and look for{" "}
+ Bugs, Test Cases, and/or Notes sections in
+ the detailed output.{" "}
+
+
+
+ We already mentioned Bodhi, several times. Instead of using the{" "}
+ fedora-easy-karma interface for submitting Karma and/or learning
+ about the Update, you can visit Bodhi directly.
+
+ fedora-easy-karma shows the URL of the relevant update near the
+ bottom of the text output - look for URL like{" "}
+ https://bodhi.fedoraproject.org/updates/FEDORA-2019-00870e8bfc.
+
+ You can have a look at other people's comments, the afore-mentioned Bugs or Test
+ Cases, and even submit the Karma directly. Just use your FAS credentials to
+ log-in.
+
- {i18n.t("words.Run")}
- {i18n.t("phrases.fedora_easy_karma_fas_username_FAS_USERNAME")}{" "}
- {i18n.t("phrases.and_report_what_you_found_out")}{" "}
+
+ Run fedora-easy-karma --fas-username=FAS_USERNAME and report what you
+ found out.{" "}
+
- {i18n.t("phrases.it_identifies")}
- {i18n.t("phrases.update_testing")}{" "}
- {i18n.t("phrases.repository_and_matches")}
-
- {i18n.t("phrases.you_are_then_presented")}{" "}
+
+ It identifies the packages installed from the updates-testing{" "}
+ repository, and matches them to the updates in Bodhi.
+
+ You are then presented with the relevant updates one-by-one, to submit Karma and a
+ comment.{" "}
+
- {i18n.t("words.enter")}
- 1 {i18n.t("phrases.to_mark_positive")}+ -1{" "}
- {i18n.t("phrases.to_mark_the")}
- {i18n.t("phrases.not_sure_you_can")}{" "}
-
- {i18n.t("phrases.Update_Feedback_Guidelines")}
-
-
- {i18n.t("phrases.still_not_sure")}
- {i18n.t("words.enter")}
- {i18n.t("phrases.to_skip_it")}
+
+ Enter 1 to mark positive karma (the update works just fine, as
+ far as you can tell), or -1 to mark the package as broken.{" "}
+
+ Not sure you can judge the package's state? Have a look at the{" "}
+
+ Update Feedback Guidelines
+
+
+ Still not sure? Just press Enter to skip it.
+
- {i18n.t("phrases.add_a_comment")}{" "}
- {i18n.t("phrases.i_tried_openning")}
- {i18n.t("phrases.when_you_test")}{" "}
- {i18n.t("phrases.i_opened_a_couple")}{" "}
- {i18n.t("phrases.for_a_web")}.
-
- {i18n.t("phrases.Absolutely_make_sure")}
+
+ Add a comment - even if it works, try to describe what you tested. It can be
+ as easy as{" "}
+ I tried openning and editing a document, and it worked. when you
+ test a text-editor, or{" "}
+ I opened a couple of tabs, and browsed random pages. for a
+ web-browser.
+
+ Absolutely make sure to provide reasonable amount of detail, when submitting
+ negative karma - ideally, you should also create a bugreport, and reference
+ it in the comment.
+
- {i18n.t("phrases.Restore_the_stable")}{" "}
- {i18n.t("phrases.sudo_dnf_distro_sync")}
+
+ Restore the stable-packages on your system by running{" "}
+ sudo dnf distro-sync
+ {" "}
diff --git a/src/wizard/FedoraManualTesting.js b/src/wizard/FedoraManualTesting.js
index 473f33a..eeda471 100644
--- a/src/wizard/FedoraManualTesting.js
+++ b/src/wizard/FedoraManualTesting.js
@@ -1,7 +1,8 @@
import React, { useState } from "react"
-import { useSelector } from "react-redux"
import { Modal, ModalHeader, ModalBody, ModalFooter } from "reactstrap"
import { CollapsableCard, ModalBadge } from "./components"
+import { Trans } from "react-i18next"
+import { useSelector } from "react-redux"
export default (props) => {
let sections = Object.keys(props.data).map((k) => (
@@ -36,60 +37,75 @@ export function FedoraManualTestingItemsListSub1(props) {
switch (props.title) {
case "Installation":
l1 = (
-
- {i18n.t("words.the")}
{i18n.t("words.Installation")} {" "}
- {i18n.t("phrases.Installation_text")}
-
- {i18n.t("phrases.Installation_text1")}
-
-
{i18n.t("words.Note")} {i18n.t("phrases.Installation_text2")}
+
+
+ The Installation testcases generally deal with a part of the
+ installation procedure.
+
+ You will certainly need an installation ISO, and either a Virtual or Bare-metal machine
+ to run the test.
+
+ Note: some (not that many, though) of these testcases require Bare-metal
+ machine. Be sure to read the Description of the testcase carefully.
+
)
break
case "Desktop":
l1 = (
-
- {i18n.t("words.the")}
{i18n.t("words.Desktop")} {" "}
- {i18n.t("phrases.Desktop_text")}
-
- {i18n.t("phrases.Desktop_text1")}
+
+
+ The Desktop testcases cover basic functionality of the desktop
+ environment.
+
+ You can either install Fedora onto clean Virtual or Bare-metal machine, or use a Live
+ image instead.
+
)
break
case "Base":
l1 = (
-
- {i18n.t("words.the")}
{i18n.t("words.Base")} {" "}
- {i18n.t("phrases.base_text")}
-
- {i18n.t("phrases.base_text1")}
-
-
{i18n.t("phrases.Pro_tip")}: {i18n.t("phrases.base_text3")}
+
+
+ The Base testcases cover the system's basic functionality just
+ after a clean installation.
+
+ Most times, you will be asked to perform a clean Fedora installation. You can use
+ either Virtual or Bare-metal machine.
+
+ Pro tip: using a snapshot of cleanly installed Virtual machine is just fine. No
+ need to reinstall for every testcase.
+
)
break
case "Server":
l1 = (
-
- {i18n.t("words.the")}
{i18n.t("words.Server")} {" "}
- {i18n.t("phrases.Server_text")}
+
+
+ The Server testcases usually require multiple machines to test the
+ server-client behaviour, and might feel a bit advanced.
+
)
break
case "Cloud":
l1 = (
-
- {i18n.t("cloud_text")}
{i18n.t("words.Cloud")} {" "}
- {i18n.t("phrases.cloud_text1")}
-
- {i18n.t("phrases.cloud_text2")}{" "}
-
- {i18n.t("phrases.Cloud_provider_setup")}
- {" "}
- {i18n.t("phrases.guides_for_more_details")}
+
+
+ Even thought the Cloud testcases are best done in the specific
+ environments like EC2 or Openstack, you can also perform them locally using Testcloud.
+
+ Have a look at the{" "}
+
+ Cloud provider setup
+ {" "}
+ guides for more details.
+
)
break
@@ -98,14 +114,13 @@ export function FedoraManualTestingItemsListSub1(props) {
}
return (
-
+
{subsections}
)
}
export function FedoraManualTestingItem(props) {
- const { i18n } = useSelector((state) => state.locale)
const extra_data = props.data.extra_data
const tc_url = extra_data.testcase_url
@@ -113,18 +128,19 @@ export function FedoraManualTestingItem(props) {
const matrix_url = extra_data.matrix_url
var environment_examples = undefined
+ const { i18n } = useSelector((state) => state.locale)
switch (extra_data.testtype) {
case "Installation":
environment_examples = (
- x86_64 or ARM
+ x86_64 {i18n.t("words.or")} ARM
)
break
case "Base":
environment_examples = (
- {i18n.t("words.Workstation")}, {i18n.t("words.Server")},{" "}
+ {18n.t("words.Workstation")}, {i18n.t("words.Server")},{" "}
Xfce {i18n.t("words.or")} {i18n.t("words.Minimal")}
)
@@ -132,7 +148,7 @@ export function FedoraManualTestingItem(props) {
case "Desktop":
environment_examples = (
- {i18n.t("words.Workstation")} {i18n.t("words.or")} KDE
+ {18n.t("words.Workstation")} {i18n.t("words.or")} KDE
)
break
@@ -153,49 +169,67 @@ export function FedoraManualTestingItem(props) {
- {i18n.t("phrases.Identify_the_testcase_and_environment_in_our")}
-
- {i18n.t("phrases.Tescase_matrix")}
- {" "}
+
+ Identify the testcase and `environment` in our{" "}
+
+ Tescase matrix{" "}
+
+
- {i18n.t("phrases.ModalBadge")} {environment_examples} {i18n.t("words.for_the")}{" "}
- {testtype} {i18n.t("phrases.testcase_but_you_can")}{" "}
- {i18n.t("words.Result")} {i18n.t("phrases.Column_which_actually")}
+
+ Have a look at the matrix. The rows are the testcases, and the columns are the
+ environments. Most of the time, these are {environment_examples} for the{" "}
+ {testtype} testcases, but you can also encouter a generic Result{" "}
+ column, which usually means you can use any media/architecture available.
+
- {i18n.t("phrases.For_this_particular_testcase")}{" "}
- {extra_data.envs.join(", ")}{" "}
- {extra_data.envs.length > 1 ? "environments are" : "environment is"}{" "}
- {i18n.t("phrases.missing_results")}
+
+ For this particular testcase, {extra_data.envs.join(", ")}{" "}
+ {extra_data.envs.length > 1 ? "environments are" : "environment is"} missing
+ results.
+
- {i18n.t("phrases.Read_the")}{" "}
-
- {i18n.t("words.Testcase")}
- {" "}
- {i18n.t("phrases.briefly_just")}{" "}
+
+ Read the{" "}
+
+ Testcase
+ {" "}
+ briefly, just to have a general idea of what you will be doing.
+
{i18n.t("phrases.The_testcases_are_generally_split_into_four_sections")}
- {i18n.t("words.Description")} {i18n.t("phrases.Should_give_you")}
+
+ Description should give you a general idea of what is being
+ tested
+
- {i18n.t("words.Setup")} {i18n.t("phrases.describes_the_steps")}
+
+ Setup describes the steps to take before you begin working on
+ the testcase
+
- {i18n.t("phrases.How_to_test")} {" "}
- {i18n.t("phrases.contains_the_individual")}
+
+ How to test contains the individual steps to take in order to
+ perform the testcase
+
- {i18n.t("phrases.Expected_results")} {" "}
- {i18n.t("phrases.describes_you_to_check")}
+
+ Expected results describe what you should check while testing in
+ order to decide whether it Passed of Failed
+
@@ -207,7 +241,7 @@ export function FedoraManualTestingItem(props) {
target="_blank"
rel="noopener noreferrer"
href="https://fedoraproject.org/wiki/Test_Results:Current_Installation_Test#How_to_test">
- {i18n.t("words.here")}
+ here
.{" "}
@@ -218,17 +252,20 @@ export function FedoraManualTestingItem(props) {
- {i18n.t("phrases.Have_a_look")} {environment_examples}{" "}
- {i18n.t("words.for_the")} {testtype}{" "}
- {i18n.t("phrases.testcases_but_you_can")}{" "}
- {i18n.t("words.Result")}{" "}
- {i18n.t("phrases.Column_which_usually")}
+
+ Have a look at the matrix. The rows are the testcases, and the columns are
+ the environments. Most of the time, these are {environment_examples} for
+ the {testtype} testcases, but you can also encouter a generic{" "}
+ Result column, which usually means you can use any
+ media/architecture available.
+
- {i18n.t("phrases.For_this_particular_testcase")}
- {extra_data.envs.join(", ")}{" "}
- {extra_data.envs.length > 1 ? "environments are" : "environment is"}{" "}
- {i18n.t("phrases.missing_results")}
+
+ For this particular testcase, {extra_data.envs.join(", ")}{" "}
+ {extra_data.envs.length > 1 ? "environments are" : "environment is"}{" "}
+ missing results.
+
@@ -238,33 +275,43 @@ export function FedoraManualTestingItem(props) {
- {i18n.t("phrases.Study_the")}{" "}
-
- {i18n.t("words.Testcase")}
- {" "}
- {i18n.t("phrases.thoroughly_to_be_sure_you_know_what_to_do")}{" "}
-
+
+ Study the{" "}
+
+ Testcase
+ {" "}
+ thoroughly, to be sure you know what to do.{" "}
+
+
{i18n.t("phrases.The_testcase_structure_is_not_making_sense")}{" "}
-
- {i18n.t("phrases.The_testcases_are_generally_split_into_four_sections")}
+
+ {i18n.t("phrases.The_testcases_are_generally_split_into_four_sections:")}
- {i18n.t("words.Description")} {" "}
- {i18n.t("phrases.should_give_you_a")}
+
+ Description should give you a general idea of what is
+ being tested
+
- {i18n.t("words.Setup")} {" "}
- {i18n.t("phrases.describes_the_steps")}
+
+ Setup describes the steps to take before you begin working
+ on the testcase
+
- {i18n.t("phrases.How_to_test")} {" "}
- {i18n.t("phrases.contains_the_individual")}
+
+ How to test contains the individual steps to take in order
+ to perform the testcase
+
- {i18n.t("phrases.Expected_results")} {" "}
- {i18n.t("phrases.describes_you_to_check")}
+
+ Expected results describe what you should check while
+ testing in order to decide whether it Passed of Failed
+
@@ -272,11 +319,17 @@ export function FedoraManualTestingItem(props) {
{i18n.t("phrases.Maybe_you_are_stuck")}{" "}
- {i18n.t("phrases.if_you_are")}{" "}
-
- {i18n.t("words.web_interface")}
- {" "}
- {i18n.t("phrases.Just_enter_a_Nickname")}
+
+ If you are not that familiar with IRC, you can use the{" "}
+
+ web-interface
+ {" "}
+ just enter a Nickname of your choice, #fedora-qa (including the hash sign) in
+ the Channels field, and click Connect.
+
@@ -289,27 +342,28 @@ export function FedoraManualTestingItem(props) {
expand_class="success"
expand_text={i18n.t("phrases.Everything_went_well")}
type="btn">
- {i18n.t("phrases.Great_Either_use")}{" "}
- {i18n.t("phrases.relval_report_results")}{" "}
- {i18n.t("phrases.on_command_line")} {i18n.t("words.relval")}
- {i18n.t("phrases.package_first")}{" "}
-
- {i18n.t("words.matrix")}
- {" "}
- {i18n.t("phrases.directly_by_clicking_on_the")} {i18n.t("words.Edit")}{" "}
- {i18n.t("phrases.link_next_to_the_Matrice_header_and_put")}{" "}
- {{{i18n.t("phrases.result_pass_your")}}}{" "}
- {i18n.t("phrases.in_the_appropriate_spot")}
+
+ Great! Either use relval report-results on command line (make sure to
+ install the relval package first), or modify the{" "}
+
+ matrix
+ {" "}
+ directly by clicking on the Edit link next to the Matrice's header, and
+ put {{result|pass|YOUR_NAME_HERE|}} in the
+ appropriate spot.
+
- {i18n.t("phrases.Awesome_Ideally_read_up_on")}{" "}
- https://fedoraproject.org/wiki/How_to_file_a_bug_report
-
- {i18n.t("phrases.if_you_dont_like_like_reading")}
+
+ Awesome! Ideally read up on https://fedoraproject.org/wiki/How_to_file_a_bug_report
+
+ If you don't feel like reading a wall of text, at least pot together a small document
+ containing:
+
{i18n.t("phrases.brief_description_of_what")}
@@ -319,23 +373,28 @@ export function FedoraManualTestingItem(props) {
{i18n.t("phrases.note_what_you_did")}
{i18n.t("phrases.try_to_reproduce_the")}
- {i18n.t("phrases.share_your_notes_on_the")}{" "}
-
- {i18n.t("phrases.if_you_are_not_familiar")}
-
+
+ Share your notes on the internet (you can use fpaste), and ask for help with
+ filing the bug report on our IRC channel #fedora-qa at freenode.net{" "}
+
+ If you are not that familiar with IRC, you can use the web-interface[link] just
+ enter a Nickname of your choice, #fedora-qa (including the hash sign) in the
+ Channels field, and click Connect.
+
+
- {i18n.t("phrases.once_you_get_the_bug_reported")}{" "}
- {i18n.t("phrases.relval_report_results")}{" "}
- {i18n.t("phrases.on_command_line")} {i18n.t("words.relval")}{" "}
- {i18n.t("phrases.package_first")}{" "}
-
- {i18n.t("words.matrix")}
- {" "}
- {i18n.t("phrases.directly_by_clicking_on_the")} {i18n.t("words.Edit")}{" "}
- {i18n.t("phrases.link_next_to_the_Matrice_header_and_put")}{" "}
- {{{i18n.t("phrases.result_fail_your")}}}{" "}
- {i18n.t("phrases.in_the_appropriate_spot")}
+
+ Once you get the Bug reported, make sure to also submit the result into the testing
+ matrix. Either use relval report-results on command line (make sure to
+ install the relval package first), or modify the{" "}
+
+ matrix
+ {" "}
+ directly by clicking on the Edit link next to the Matrice's header, and
+ put {{result|fail|YOUR_NAME_HERE|BUG_NUMBER|}} in
+ the appropriate spot.
+
@@ -356,7 +415,7 @@ function ModalInfo(props) {
}
const project = props.buttonLabel.split(":")[0]
- const ticket = props.buttonLabel.split(":")[1] //strip whitespace?
+ const ticket = props.buttonLabel.split(":")[1]
return (
diff --git a/src/wizard/step/Step4.js b/src/wizard/step/Step4.js
index 63c2a5a..7d350c8 100644
--- a/src/wizard/step/Step4.js
+++ b/src/wizard/step/Step4.js
@@ -4,10 +4,10 @@ import { shallowEqual, useSelector } from "react-redux"
import * as R from "ramda"
import { useHistory } from "react-router-dom"
import Manual from "../Manual"
+import { Trans } from "react-i18next"
const Step4 = (props) => {
const { query } = props
- const { i18n } = useSelector((state) => state.locale)
const history = useHistory()
@@ -89,59 +89,75 @@ const Step4 = (props) => {
case "Installation":
return (
- {i18n.t("words.the")} {i18n.t("words.Installation")} {" "}
- {i18n.t("phrases.Installation_text")}
-
- {i18n.t("phrases.Installation_text1")}
-
- {i18n.t("words.Note")} {i18n.t("phrases.Installation_text2")}
+
+ The Installation testcases generally deal with a part of the
+ installation procedure.
+
+ You will certainly need an installation ISO, and either a Virtual or Bare-metal
+ machine to run the test.
+
+ Note: some (not that many, though) of these testcases require Bare-metal
+ machine. Be sure to read the Description of the testcase carefully.
+
)
case "Desktop":
return (
- {i18n.t("words.the")} {i18n.t("words.Desktop")} {" "}
- {i18n.t("phrases.Desktop_text")}
-
- {i18n.t("phrases.Desktop_text1")}
+
+ The Desktop testcases cover basic functionality of the desktop
+ environment.
+
+ You can either install Fedora onto clean Virtual or Bare-metal machine, or use a Live
+ image instead.
+
)
case "Base":
return (
- {i18n.t("words.the")} {i18n.t("words.Base")} {" "}
- {i18n.t("phrases.base_text")}
-
- {i18n.t("phrases.base_text1")}
-
- {i18n.t("phrases.Pro_tip")}: {i18n.t("phrases.base_text3")}
+
+ The Base testcases cover the system's basic functionality just
+ after a clean installation.
+
+ Most times, you will be asked to perform a clean Fedora installation. You can use
+ either Virtual or Bare-metal machine.
+
+ Pro tip: using a snapshot of cleanly installed Virtual machine is just fine.
+ No need to reinstall for every testcase.
+
)
case "Server":
return (
- {i18n.t("words.the")} {i18n.t("words.Server")} {" "}
- {i18n.t("phrases.Server_text")}
+
+ The Server testcases usually require multiple machines to test the
+ server-client behaviour, and might feel a bit advanced.
+
)
case "Cloud":
return (
- {i18n.t("cloud_text")}
{i18n.t("words.Cloud")} {" "}
- {i18n.t("phrases.cloud_text1")}
-
- {i18n.t("phrases.cloud_text2")}{" "}
-
- {i18n.t("phrases.Cloud_provider_setup")}
- {" "}
- {i18n.t("phrases.guides_for_more_details")}
+
+ Even thought the Cloud testcases are best done in the specific
+ environments like EC2 or Openstack, you can also perform them locally using
+ Testcloud.
+
+ Have a look at the{" "}
+
+ Cloud provider setup
+ {" "}
+ guides for more details.
+
)
From 0fff86ce6f157dd87aeccdb2473c5928fa326d0f Mon Sep 17 00:00:00 2001
From: manisha
Date: Aug 10 2021 11:22:42 +0000
Subject: [PATCH 5/11] implemented react-i18next
---
diff --git a/.gitignore b/.gitignore
index 5504588..e580f24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+# https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
diff --git a/public/index.html b/public/index.html
index 016a790..6fe2ed2 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,15 +1,15 @@
-
-
-
-
+
+
+
+
-
+
-
-
+
-
- You need to enable JavaScript to run this app.
-
+ You need to enable JavaScript to run this app.