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

Fallback Asset in Qgoda::Locale::XGettext is Wrongly Configured #110

Open
gflohr opened this issue Jul 15, 2023 · 0 comments
Open

Fallback Asset in Qgoda::Locale::XGettext is Wrongly Configured #110

gflohr opened this issue Jul 15, 2023 · 0 comments

Comments

@gflohr
Copy link
Owner

gflohr commented Jul 15, 2023

This piece of code

	my $main_asset = $site->getAssetByRelpath($main);
	if (!$main_asset) {
		# FIXME! This is wrong!
		my $path = File::Spec->rel2abs($main, $self->option('srcdir'));
		$main_asset = Qgoda::Asset->new($path, $main);
	}
	my $splitter = Qgoda::Splitter->new($main_asset->getPath);

is buggy. The absolute path be one level too high because rel2abs is called, when we are in the source directory, not the po directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant