Tell the user what he has to do next#434
Open
mikhailnov wants to merge 1 commit into
Open
Conversation
c6124c5 to
d079b08
Compare
7da91e4 to
9d28d27
Compare
a8ea903 to
738866a
Compare
def3c6b to
b8b49e6
Compare
117fa8c to
f1d927f
Compare
Author
|
ping Patch for latest master: diff --git a/uxplay.cpp b/uxplay.cpp
index 06e528c..9382d21 100644
--- a/uxplay.cpp
+++ b/uxplay.cpp
@@ -178,6 +178,7 @@ static int n_video_renderers = 0;
static int n_audio_renderers = 0;
static bool hls_support = false;
static std::string lang = "";
+static std::string sys_lang = std::getenv("LANG") ? std::getenv("LANG") : "";
static std::string url = "";
static guint gst_x11_window_id = 0;
static guint video_eos_watch_id = 0;
@@ -3227,6 +3228,21 @@ int main (int argc, char *argv[]) {
stop_dnssd();
cleanup();
}
+ // TODO: use gettext for propper translations
+ const char* helptext1;
+ const char* helptext2;
+ if (sys_lang == "ru_RU.UTF-8") {
+ helptext1 = "Компьютер и iPhone/iPad должны быть подключены к одной сети";
+ helptext2 = "Запустите \"Повтор экрана\" на iPhone/iPad и выберите";
+ } else {
+ helptext1 = "Your computer and iPhone/iPad must be in one network";
+ helptext2 = "Run \"Screen Mirroring\" on iPhone/iPad and choose";
+ }
+ LOGI("");
+ LOGI("---------------------------------------------");
+ LOGI("---> %s", helptext1);
+ LOGI("---> %s \"%s\"", helptext2, server_name.c_str());
+ LOGI("----------------------------------------------");
reconnect:
compression_type = 0;
close_window = new_window_closing_behavior; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It was not obvious what had to be done after running uxplay. I have added some text, telling the user what he has to do next.
I have also made an icon and desktop file in the ROSA Linux package of uxplay (see https://abf.rosa.ru/import/uxplay).
Now users can launch it without a manual. It is worse than a GUI, but better then nothing, I think.