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

Test suite: failure with locale/language different from 'en' #5362

Open
2 tasks done
deining opened this issue Jan 5, 2025 · 0 comments
Open
2 tasks done

Test suite: failure with locale/language different from 'en' #5362

deining opened this issue Jan 5, 2025 · 0 comments
Labels
unverified A bug that has been reported but not verified

Comments

@deining
Copy link

deining commented Jan 5, 2025

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

Running the test suite fails with a locale/language different from en.

How to reproduce

  1. Go to root of repo
  2. Switch to folder dialog (or widget or ...)
  3. Switch to a language different from en:
cd dialog && export LANG=es_ES.utf8 && go test ./...
  1. Run the test suite:
go test ./...

You will now see errors:

...
    folder_test.go:38: 
        	Error Trace:	/home/user_x/fyne/dialog/folder_test.go:38
        	Error:      	Not equal: 
        	            	expected: "Open Folder"
        	            	actual  : "Abrir Carpeta"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-Open Folder
        	            	+Abrir Carpeta
        	Test:       	TestShowFolderOpen
    folder_test.go:49: 
        	Error Trace:	/home/user_x/fyne/dialog/folder_test.go:49
        	Error:      	Not equal: 
        	            	expected: "(Parent)"
        	            	actual  : "(Padre)"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-(Parent)
        	            	+(Padre)
        	Test:       	TestShowFolderOpen
FAIL
FAIL	fyne.io/fyne/v2/dialog	6.689s
FAIL

Screenshots

No response

Example code

From the root the repo:

export LANG=es_ES.utf8 && go test ./...

Fyne version

4a875d9

Go compiler version

gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0

Operating system and version

Ubuntu 24.04

Additional Information

No response

@deining deining added the unverified A bug that has been reported but not verified label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

1 participant