Fix i18nd test by removing commented-out i18n() calls in API docs

This commit is contained in:
Nate Graham 2020-04-05 18:21:21 -06:00
parent 863ec93ade
commit 96d203b4b8

View File

@ -67,7 +67,7 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
* isDefault: model.isDefault * isDefault: model.isDefault
* defaultActionButtonAction: Action { * defaultActionButtonAction: Action {
* icon.name: model.isPaused ? "media-playback-start" : "media-playback-pause" * icon.name: model.isPaused ? "media-playback-start" : "media-playback-pause"
* text: model.isPaused ? i18n("Resume") : i18n("Pause") * text: model.isPaused ? "Resume" : "Pause"
* onTriggered: { * onTriggered: {
* if (model.isPaused) { * if (model.isPaused) {
* model.resume(model.name); * model.resume(model.name);
@ -79,7 +79,7 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
* contextualActionsModel: [ * contextualActionsModel: [
* Action { * Action {
* icon.name: "configure" * icon.name: "configure"
* text: i18n("Configure...") * text: "Configure..."
* onTriggered: model.configure(model.name); * onTriggered: model.configure(model.name);
* } * }
* ] * ]
@ -186,17 +186,17 @@ MouseArea {
* @code * @code
* contextualActionsModel: [ * contextualActionsModel: [
* Action { * Action {
* text: i18n("Do something") * text: "Do something"
* icon.name: "document-edit" * icon.name: "document-edit"
* onTriggered: doSomething() * onTriggered: doSomething()
* } * }
* Action { * Action {
* text: i18n("Do something else") * text: "Do something else"
* icon.name: "draw-polygon" * icon.name: "draw-polygon"
* onTriggered: doSomethingElse() * onTriggered: doSomethingElse()
* } * }
* Action { * Action {
* text: i18n("Do something completely different") * text: "Do something completely different"
* icon.name: "games-highscores" * icon.name: "games-highscores"
* onTriggered: doSomethingCompletelyDifferent() * onTriggered: doSomethingCompletelyDifferent()
* } * }
@ -217,17 +217,17 @@ MouseArea {
* @code * @code
* contextMenu: PlasmaComponents.Menu { * contextMenu: PlasmaComponents.Menu {
* PlasmaComponents.MenuItem { * PlasmaComponents.MenuItem {
* text: i18n("Do something") * text: "Do something"
* icon: "document-edit" * icon: "document-edit"
* onClicked: doSomething() * onClicked: doSomething()
* } * }
* PlasmaComponents.MenuItem { * PlasmaComponents.MenuItem {
* text: i18n("Do something else") * text: "Do something else"
* icon: "draw-polygon" * icon: "draw-polygon"
* onClicked: doSomethingElse() * onClicked: doSomethingElse()
* } * }
* PlasmaComponents.MenuItem { * PlasmaComponents.MenuItem {
* text: i18n("Do something completely different") * text: "Do something completely different"
* icon: "games-highscores" * icon: "games-highscores"
* onClicked: doSomethingCompletelyDifferent() * onClicked: doSomethingCompletelyDifferent()
* } * }